/** * Parses OpenAI Responses API server-sent events (SSE) and yields IContent messages. * Handles text output, tool calls, reasoning/thinking content, and usage metadata. * * @plan PLAN-20250120-DEBUGLOGGING.P15 * @requirement REQ-INT-001.1 */ import { type IContent } from '../../services/history/IContent.js'; /** * Options for parseResponsesStream. */ export interface ParseResponsesStreamOptions { /** * Whether to emit ThinkingBlock content in the output stream. * When false, reasoning content is still accumulated but not yielded. * Defaults to true. */ includeThinkingInResponse?: boolean; } export declare function parseResponsesStream(stream: ReadableStream, options?: ParseResponsesStreamOptions): AsyncIterableIterator; export declare function parseErrorResponse(status: number, body: string, providerName: string): Error;