/** * Shared streaming utilities used by provider adapters */ /** * Parse SSE stream and yield chunks. * Shared utility used by OpenAI and Anthropic providers. * * `chunkTimeoutMs` guards against servers that open a response body but then * stall — with no deadline, `reader.read()` would await forever. * * `signal` is the caller-supplied AbortSignal. When it fires we cancel the * reader and throw `DOMException('Aborted', 'AbortError')`, distinct from the * chunk-timeout error. */ export declare function parseSSEStream(reader: ReadableStreamDefaultReader, chunkTimeoutMs?: number, signal?: AbortSignal): AsyncGenerator; //# sourceMappingURL=streaming.d.ts.map