import { ErrorType } from './interfaces'; declare class TaoError extends Error { filename: string; fileContent: string[]; lineNumber: number | null; type: ErrorType; isAChildError: boolean; errorHTML: string; constructor({ message, type, filename, fileContent, lineNumber, errorHTML, isAChildError, }: { message: string; type: ErrorType; filename?: string; fileContent?: string[]; lineNumber?: number | null; errorHTML?: string; isAChildError?: boolean; }); } /** * @returns [error message, original file content splitted by line, original line number] */ declare function findOriginalLineNumberWithMessage(error: any, compiledAnonymousFnContent: string, originalFileContent: string): [string, string[], number | null]; /** * Calling new Function(...) is an anonymous function. */ declare function getLineFromAnonymousFunction(source: string): number; declare function extractContentFromAnonymousFunction(compiledAnonymousFnContent: string, line: number): string; declare function getOriginalLineNumber(compiledJoined: string): number; declare function splitAndRemoveTrailingEmptyLine(fileContent: string): string[]; declare function handleNonUniqueFile(files: string[], filename: string): { message: string; type: "Precompilation Error"; }; declare function handleWrongTypeOfTemplate(template: string): { message: string; type: "Template Type Error"; }; declare function handleNotFoundDynamicTemplate(template: string): { message: string; type: "Not Found Error"; }; declare function handleNoTemplateFilesFound(views: string, extension: string): { message: string; type: "Not Found Error"; }; declare function logger(level: 'info' | 'warn' | 'error' | 'debug', message: string): void; export { TaoError, getLineFromAnonymousFunction, extractContentFromAnonymousFunction, getOriginalLineNumber, findOriginalLineNumberWithMessage, handleNonUniqueFile, handleWrongTypeOfTemplate, handleNotFoundDynamicTemplate, handleNoTemplateFilesFound, logger, splitAndRemoveTrailingEmptyLine, }; //# sourceMappingURL=error-utils.d.ts.map