import type { RuntimeUsage } from "../../../src/provider/shared/index.js"; type OpenAIResponsesStreamContext = { providerKind?: "openai" | "mistral" | "moonshotai"; providerLabel?: string; webSearchToolName?: string; preserveRawOutputItems?: boolean; }; export declare const MAX_OPENAI_STREAM_MESSAGE_SNAPSHOT_BYTES: number; export declare const MAX_OPENAI_RESPONSES_RAW_METADATA_BYTES: number; export declare const MAX_OPENAI_RESPONSES_STREAM_OUTPUT_ITEMS = 4096; export declare const MAX_OPENAI_RESPONSES_STREAM_CONTENT_PARTS = 4096; /** * The Responses API uses `input_tokens` / `output_tokens` field names * instead of Chat Completions' `prompt_tokens` / `completion_tokens`. */ export declare function extractOpenAIResponsesUsage(payload: unknown): RuntimeUsage | undefined; export declare function normalizeOpenAIResponsesFinishReason(raw: unknown): string | { unified: string; raw: string; } | null; /** * Parse the Responses API streaming event grammar into the same UI part * shapes the existing OpenAI / Anthropic / Google streams emit. */ export declare function streamOpenAIResponsesParts(stream: ReadableStream, context?: OpenAIResponsesStreamContext): AsyncIterable; export {}; //# sourceMappingURL=openai-responses-stream.d.ts.map