import type { AIImage, AIImageOptions, AIChatOptions, AIClient, AIClientConfig, AIJSONOptions, AIMessage, AITool, AIToolChatOptions, AIToolChatResult, AIVisionOptions } from '../types.js'; export declare class OpenAIAIClient implements AIClient { readonly id: string; private sdk; private defaultModel; constructor(config: AIClientConfig); /** Whisper accepts the small MP3 prepared by the material reader and returns speech timestamps. */ transcribe(audio: Buffer, options?: AIChatOptions): Promise<{ text: string; segments: { start: number; end: number; text: string; }[]; }>; chat(messages: AIMessage[], options?: AIChatOptions): Promise; generateJSON(prompt: string | AIMessage[], options?: AIJSONOptions): Promise; vision(image: Buffer | Uint8Array | { url: string; }, prompt: string, options?: AIVisionOptions): Promise; chatWithTools(messages: AIMessage[], tools: AITool[], options?: AIToolChatOptions): Promise; /** A picture from words (ADR-0226 decision 8) - the Images API; a gpt-image model answers in base64. */ generateImage(prompt: string, options?: AIImageOptions): Promise; listModels(): Promise; } /** * OpenAI's model list has no capability field, so the conversation models are told apart by name: the GPT and * o-series families, without their audio, realtime, speech, image, search and instruct variants. One rule, kept by a test. */ export declare function isOpenAIChatModel(id: string): boolean; /** * 한 AIMessage 가 다중 tool_result 를 가지면 OpenAI 측에서 여러 role:'tool' 메시지로 * 분리해야 함 (OpenAI 는 메시지당 tool_call_id 하나만 매핑). 따라서 array 를 반환. */ export declare function toSDKMessages(msg: AIMessage): any[];