import type { LLMResponse, LLMChunk } from "../types.ts"; /** * Minimal interface over the SDK's chat.completions.create method. * * The OpenAI / Groq / OpenRouter SDKs expose overloaded create() signatures * that don't satisfy a generic Record interface. The * adaptation cast lives once in ChatCompletionsProvider's constructor * (chat-completions-provider.ts) — it is safe because the handler only * forwards the params object through to the SDK, which already validates * them against its own overload. */ export interface ChatCompletionsClient { create(params: Record): Promise; } export interface ChatCompletionsHandler { complete(params: Record): Promise; stream(params: Record): Promise>; } export declare function createChatCompletionsHandler(client: ChatCompletionsClient, providerName: string, getModel: () => string): ChatCompletionsHandler; //# sourceMappingURL=chat-completions.d.ts.map