import { type LLMConfig, type LLMMessage, type LLMResult } from "./llm.js"; export interface StreamOptions { onToken?: (text: string) => void; } export declare function callLLMStream(messages: LLMMessage[], system: string, config: LLMConfig, opts?: StreamOptions, signal?: AbortSignal): Promise; interface SSEEvent { type?: string; delta?: { type?: string; text?: string; }; message?: { usage?: { input_tokens?: number; output_tokens?: number; }; }; usage?: { input_tokens?: number; output_tokens?: number; }; [key: string]: unknown; } export declare function parseSSE(stream: ReadableStream, signal?: AbortSignal, idleMs?: number): AsyncGenerator; export declare function parseBlocks(block: string): Generator; export {}; //# sourceMappingURL=llm-stream.d.ts.map