import { OpenAICompletionRequest, OpenAICompletionResponse, OpenAIModelsResponse } from './types'; /** * OpenAI API Client * Handles direct communication with OpenAI's REST API */ export declare class OpenAIApiClient { private client; private apiKey; constructor(apiKey: string, baseUrl?: string, timeout?: number); /** * Create a chat completion */ createChatCompletion(request: OpenAICompletionRequest): Promise; /** * Get available models */ getModels(): Promise; /** * Health check - test API connectivity */ healthCheck(): Promise; /** * Handle API errors and convert to standardized format */ private handleApiError; }