import type { AgentDriver, AgentRequest, AgentResponse, AgentPlatform } from './types.js'; import type { ApiProvider } from '../config/config.js'; export interface ApiClientConfig { readonly provider: ApiProvider; readonly apiKey: string; readonly model: string; readonly baseUrl?: string; readonly maxRetries?: number; readonly timeoutMs?: number; } export interface ChatMessage { readonly role: 'system' | 'user' | 'assistant'; readonly content: string; } interface ChatCompletionResult { readonly content: string; readonly model: string; readonly tokens_used: number; } export declare function chatCompletion(config: ApiClientConfig, messages: readonly ChatMessage[]): Promise; export declare class ApiDriver implements AgentDriver { readonly platform: AgentPlatform; private readonly config; constructor(config: ApiClientConfig); execute(request: AgentRequest): Promise; } export declare function createApiDriver(config: ApiClientConfig): ApiDriver; export {}; //# sourceMappingURL=api-client.d.ts.map