interface ErrorMapBase { assert?: unknown; type?: 'error' | 'warning' | 'info'; } interface ErrorMapWithReason extends ErrorMapBase { reason: keyof typeof errorMap; replaceStrings: string[]; customMessage?: never; } interface ErrorMapWithCustomMessage extends ErrorMapBase { customMessage: string; reason?: never; replaceStrings?: never; } type ErrorMap = ErrorMapWithReason | ErrorMapWithCustomMessage; declare const errorMap: { 'no-parent': string; 'no-children': string; 'attribute-mismatch': string; }; /** * assert = check something exist/is truish. Also send in !this.debug to only run in debug mode. * reason = key of error map, * type = console warning, stopping error or info, * replaceString = dynamic text parts */ export declare const raiseError: ({ assert, reason, type, replaceStrings, customMessage, }: ErrorMap) => void | never; export {};