import { EventEnvelope, TreeNode } from "./types.js"; /** Pair promptStart events with their terminators — a promptCompletion, * an error event with errorType "llmError", or a promptCancelled — by * span and order: the nth start in a span pairs with the nth * terminator. Returns the set of PAIRED starts; anything not in the * set never completed (a hung, killed, or in-flight call — in follow * mode this is the live in-flight indicator). Paired starts are hidden * from the tree: the terminator row already carries the interesting * data, and doubling every call's rows would make the common case * worse to read. */ export declare function pairedPromptStarts(events: EventEnvelope[]): Set; export declare function buildForest(events: EventEnvelope[]): TreeNode[];