type FunctionCall = { name: string; arguments: Record; }; type ResponseFn = (messages: any[]) => { content: string; functionCalls?: FunctionCall[]; }; export declare function makeMockOpenAIChat(responseFn: ResponseFn): ({ messages, stream, model, stream_options, ...otherOptions }: { messages: any[]; stream?: boolean; model?: string; stream_options?: { include_usage?: boolean; }; [key: string]: any; }) => { [Symbol.asyncIterator]: () => AsyncGenerator<{ usage?: null | undefined; choices: { index: number; delta: { role: string; content: string; refusal: null; }; logprobs: null; finish_reason: null; }[]; id: string; object: string; created: number; model: string; system_fingerprint: string; } | { usage?: null | undefined; choices: { index: number; delta: { content: string; }; logprobs: null; finish_reason: null; }[]; id: string; object: string; created: number; model: string; system_fingerprint: string; } | { usage?: null | undefined; choices: { index: number; delta: { function_call: { name: string; arguments: string; }; }; logprobs: null; finish_reason: null; }[]; id: string; object: string; created: number; model: string; system_fingerprint: string; } | { usage?: null | undefined; choices: { index: number; delta: { function_call: { arguments: string; }; }; logprobs: null; finish_reason: null; }[]; id: string; object: string; created: number; model: string; system_fingerprint: string; } | { usage?: null | undefined; choices: { index: number; delta: {}; logprobs: null; finish_reason: string; }[]; id: string; object: string; created: number; model: string; system_fingerprint: string; } | { choices: never[]; usage: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }; id: string; object: string; created: number; model: string; system_fingerprint: string; }, void, unknown>; id?: undefined; object?: undefined; created?: undefined; model?: undefined; choices?: undefined; usage?: undefined; system_fingerprint?: undefined; } | { id: string; object: string; created: number; model: string; choices: { index: number; message: { role: string; content: string; function_call: { name: string; arguments: string; } | null; refusal: null; }; logprobs: null; finish_reason: string; }[]; usage: { prompt_tokens: any; completion_tokens: number; total_tokens: any; }; system_fingerprint: string; [Symbol.asyncIterator]?: undefined; }; export {}; //# sourceMappingURL=openaiMock.d.ts.map