export declare function setErrorLogRoot(_root: string): void; export declare function prettyPrintError(type: string, e: ErrorType): void; /** * 格式化栈信息为可读的字符串数组 * @param stackLines 栈信息行数组,不能包含.stack的第一行 * @param boundary 边界函数,默认为 prettyFormatStack 本身 * @returns 格式化后的栈信息数组 */ export declare function prettyFormatStack(stackLines: readonly string[]): string[]; export declare function prettyFormatStack(stackLines: readonly string[], boundary: CallableFunction | false): string[]; interface IError { readonly code?: any; readonly message?: any; readonly stack?: string; readonly cause?: unknown; } /** * 格式化错误对象为可读的字符串, * * @param e 要格式化的错误对象 * @param withMessage 是否包含错误信息(即第一行),默认为 true * @param boundary 可选的边界函数,用于确定哪些栈帧应该被包含在格式化结果中,默认为 prettyFormatError 本身 * @returns 格式化后的错误字符串 */ export declare function prettyFormatError(e: ErrorType, withMessage?: boolean): string; export declare function prettyFormatError(e: ErrorType, withMessage?: boolean, boundary?: CallableFunction | false): string; export {}; //# sourceMappingURL=pretty.nodejs.d.ts.map