import type { OpenAIStreamChunk } from './types'; export declare class StreamConverter { private blockIndex; private inTextBlock; private inToolBlock; private finished; private model; private requestId; constructor(model: string); start(): string[]; feedChunk(chunk: OpenAIStreamChunk): string[]; /** * Ensure the stream is properly closed. Call after the upstream SSE loop ends. * If the upstream ended without a finish_reason (e.g. sent [DONE] directly), * this emits the missing content_block_stop + message_delta + message_stop. */ finish(): string[]; private sse; }