/** * Dependency-free stack-trace parser. * * Turns a raw `Error.stack` string into structured frames. Handles the two * shapes we see across our supported browsers: * - V8 / Chrome / Edge: " at fnName (file:line:col)" / " at file:line:col" * - Gecko / Safari: "fnName@file:line:col" / "@file:line:col" * * Lines that don't carry a usable location (e.g. the leading message line, or * "at ") are skipped. This is intentionally small and is covered by * fixture tests in __tests__/stack-parser.test.ts. */ export interface StackFrame { function: string | null; file: string | null; line: number | null; column: number | null; } /** * Parse an Error.stack string into frames. Returns [] for missing/empty input. */ export declare function parseStack(stack: string | null | undefined): StackFrame[]; //# sourceMappingURL=stack-parser.d.ts.map