import { ErrorCause } from "./error_serializer.mjs"; //#region src/context_lines.d.ts /** * Represents a frame with source context lines. */ interface ContextFrame { filename: string; platform?: string; lineno: number; colno?: number; function?: string; in_app: boolean; pre_context: string[]; context_line: string; post_context: string[]; } /** * Extract context lines for a stack trace. */ declare function extractContextLines(stack: string, contextLines?: number): Promise; /** * Build a cause chain with context lines for each cause. * This extracts context lines from each error's stack trace. */ declare function buildCauseChainWithContext(error: Error, contextLines?: number): Promise; /** * Clear the file cache (useful for testing). */ declare function clearContextLinesCache(): void; //#endregion export { ContextFrame, buildCauseChainWithContext, clearContextLinesCache, extractContextLines };