import type { Secret } from "../secret.js"; /** * Model configuration for AI operations */ export interface ModelConfig { /** * Model ID to use * @default 'gpt-4o' */ id?: string; /** * Model provider name * @default 'openai' */ provider?: string; /** * Model-specific options */ options?: Record; } /** * Configuration for creating an OpenAI client */ export interface ClientConfig { /** * Base URL for the OpenAI API * @default 'https://api.openai.com/v1' */ baseURL?: string; /** * OpenAI API key to use for generating content * If not provided, will use OPENAI_API_KEY environment variable */ apiKey?: Secret; /** * Model configuration */ model?: ModelConfig; } /** * Creates an OpenAI-compatible client with the given configuration */ export declare function createModel(config: ClientConfig): import("ai").LanguageModelV1; /** * Handles rate limiting with exponential backoff * @param fn Function to retry * @returns Result of the function * @throws Error if max retries or time is exceeded */ export declare function withRateLimitRetry(fn: () => Promise): Promise; //# sourceMappingURL=client.d.ts.map