import type { TraceFrame } from "../types.js"; export interface WalkVisitor { /** * Called when entering a frame, before any of its children. Return `false` * to stop the entire walk; return `"skip"` to skip this frame's children * (the exit hook still fires). */ enter?: (frame: TraceFrame, depth: number, index: number) => void | false | "skip"; /** * Called when leaving a frame, after all children have been visited. Return * `false` to stop the entire walk. */ exit?: (frame: TraceFrame, depth: number, index: number) => void | false; } /** * Depth-first walk of a call tree using an explicit stack. Safe for * arbitrarily deep trees (will not blow the JS call stack). * * `index` is the position among the parent's children (0 for the root). */ export declare function walkCallTree(root: TraceFrame, visitor: WalkVisitor): void; //# sourceMappingURL=walkCallTree.d.ts.map