import type { HqTranscriptEntry } from './protocol.js'; /** * Map a single raw JSONL session event to zero or more transcript entries. * An `llm_response` can yield an assistant text entry PLUS one tool entry per * embedded `tool_use` block. */ export declare function mapSessionEventToEntries(ev: Record): HqTranscriptEntry[]; /** * Merge each tool result into its matching args entry (by `toolUseId`), * keeping the args entry's chronological position. Results with no matching * args entry are kept as their own entries. Mutates/keeps order; pure w.r.t. * input ordering. */ export declare function mergeToolResults(flat: readonly HqTranscriptEntry[]): HqTranscriptEntry[]; /** * Map + merge an array of raw JSONL events into the final transcript-entry * list: strict chronological order, with each tool's args and result combined * into a single entry. */ export declare function buildTranscriptFromEvents(events: Iterable>): HqTranscriptEntry[]; //# sourceMappingURL=transcript-mapper.d.ts.map