/** * OpenAI-shaped type defs + mock chat/function helpers for CodexSdkAdapter. * Extracted to keep codex-sdk-adapter.ts under the 400-line cap. */ export interface OpenAIMessage { role: 'system' | 'user' | 'assistant' | 'function'; content: string; name?: string; function_call?: { name: string; arguments: string; }; } export interface OpenAICompletionChunk { id: string; object: 'chat.completion.chunk'; created: number; model: string; choices: Array<{ index: number; delta: { role?: string; content?: string; function_call?: { name?: string; arguments?: string; }; }; finish_reason?: string | null; }>; usage?: { prompt_tokens: number; completion_tokens: number; total_tokens: number; }; } export interface OpenAIFunction { name: string; description: string; parameters: Record; } export declare function createOpenAIClient(): object; export declare function createChatCompletion(params: { model: string; messages: OpenAIMessage[]; functions: OpenAIFunction[]; stream: boolean; temperature: number; }): Promise>; export declare function executeMockFunction(name: string, arguments_: string): Promise;