import type { SourceCodeInfo } from '../tokenizer/token'; import type { ContinuationStack } from './frames'; export interface CallStackEntry { name: string; sourceCodeInfo?: SourceCodeInfo; } /** * Walk the continuation stack and extract a human-readable call stack. * * Filters to call-relevant frames: FnBody (user-defined function calls), * EvalArgs (named call sites), CallFn (anonymous call sites), * AlgebraicHandle and HandlerClause (effect handler boundaries). */ export declare function reconstructCallStack(k: ContinuationStack): CallStackEntry[]; /** * Format a call stack as a human-readable string for error messages. * * Example output: * at foo myfile.dvala:42:15 * at processAll utils.dvala:10:3 * at
entry.dvala:5:1 */ export declare function formatCallStack(entries: CallStackEntry[]): string;