import type { CodeSnippet, ErrorPageData, StackFrame } from './types'; /** * Parse a stack trace string into structured frames */ export declare function parseStackTrace(stack: string | undefined, basePaths?: string[]): StackFrame[]; /** * Get a code snippet from a file around a specific line */ export declare function getCodeSnippet(filePath: string, targetLine: number, contextLines?: number): CodeSnippet | undefined; /** * Enhance stack frames with code snippets */ export declare function enhanceStackFrames(frames: StackFrame[], snippetLines?: number): StackFrame[]; /** * Format a stack frame for display */ export declare function formatStackFrame(frame: StackFrame): string; /** * Create error page data from an Error object */ export declare function createErrorPageDataFromError(error: Error, basePaths?: string[], snippetLines?: number): ErrorPageData; /** * Group consecutive vendor frames */ export declare function groupVendorFrames(frames: StackFrame[]): Array;