import { type OpenAICompatibleProviderSettings } from "@ai-sdk/openai-compatible"; import type { LanguageModelV4 } from "@ai-sdk/provider"; import { type OpenGatewayReasoningDetailsStore } from "./reasoning-roundtrip-store.js"; export type { OpenGatewayReasoningDetailsStore } from "./reasoning-roundtrip-store.js"; export interface CreateOpenGatewaySettings extends Omit { /** OpenGateway API key. Defaults to `process.env.OPENGATEWAY_API_KEY`. */ apiKey?: string; /** Override the base URL. Defaults to the OpenGateway v1 endpoint. */ baseURL?: string; reasoningDetailsRefMaxEntries?: number; reasoningDetailsRefTtlMs?: number; reasoningDetailsStore?: OpenGatewayReasoningDetailsStore; } /** * OpenGateway provider built on `@ai-sdk/openai-compatible`. * * OpenGateway accepts OpenAI-compatible Chat Completions requests and routes * `owner/model` IDs such as `openai/gpt-4o-mini` or `google/gemini-2.5-pro`. * The plain AI SDK `reasoning` option is passed through as `reasoning_effort`. * `reasoning: 'none'` is left to the AI SDK default, which omits the field. * * @example * const opengateway = createOpenGateway(); * await streamText({ model: opengateway('openai/gpt-4o-mini'), prompt: '...' }); */ export declare function createOpenGateway(settings?: CreateOpenGatewaySettings): (modelId: string) => LanguageModelV4;