import { Stream } from 'effect'; import type { StreamEvent } from './events'; export interface OpenAIStreamOptions { model: string; timeoutMs?: number; now?: () => number; signal?: AbortSignal; } export interface OpenAIChatChunk { id: string; object: 'chat.completion.chunk'; created: number; model: string; choices: Array<{ index: number; delta: { role?: 'assistant'; content?: string; tool_calls?: Array<{ index: number; id: string; type: 'tool_call'; tool_call: { name: string; arguments: string; }; }>; }; finish_reason: string | null; }>; usage?: { prompt_tokens?: number; completion_tokens?: number; total_tokens?: number; }; } type OpenAIChunk = OpenAIChatChunk; export declare const toOpenAIStream: (events: Stream.Stream, options: OpenAIStreamOptions) => Stream.Stream; export {}; //# sourceMappingURL=openai.d.ts.map