export interface StackFrame { file: string; line: number; column: number; function?: string; isNative?: boolean; isEval?: boolean; isConstructor?: boolean; } export interface FormattedError { message: string; name: string; stack: string; frames: StackFrame[]; originalStack?: string; } export declare class SourcemapErrorFormatter { private static readonly STACK_FRAME_REGEX; private static readonly WINDOWS_PATH_REGEX; private static readonly FILE_URL_REGEX; /** * Formats an error with enhanced stack trace information */ static formatError(error: Error): FormattedError; /** * Parses a stack trace string into structured frames */ private static parseStackTrace; /** * Formats stack frames back into a readable stack trace */ private static formatStackTrace; /** * Determines if a frame should be skipped in the output */ private static shouldSkipFrame; /** * Extracts error location for the error prompt */ static extractErrorLocation(error: Error): { file: string; line: number; column: number; } | null; /** * Validates and resolves a file path */ static resolveFilePath(filePath: string, basePath?: string): string | null; }