/** * Parse Claude Code's stream-json output into a NormalizedTranscript. * * Schema (one JSON object per line): * {type:'system', subtype:'init', session_id, ...} * {type:'assistant', message:{role:'assistant', content:[{type:'text',text}, ...]}} * {type:'result', result:''} * * Feed each stream-json line as it arrives from the child process, * then call `finalize()` to read out `{answer, sessionId}`. Holds * O(latest answer) of state — never the full transcript. */ import type { NormalizedTranscript } from '../../core/types.js'; export type StreamingClaudeParser = { feed(line: string): void; finalize(): NormalizedTranscript; }; export declare function createStreamingClaudeParser(): StreamingClaudeParser; //# sourceMappingURL=parse-transcript.d.ts.map