import { MODELS } from "./models.generated.js"; import type { Api, KnownProvider, Model, Usage } from "./types.js"; declare const DEEPSEEK_MODELS: { readonly "deepseek-chat": { id: string; name: string; api: "openai-completions"; provider: string; baseUrl: string; reasoning: false; input: "text"[]; cost: { input: number; output: number; cacheRead: number; cacheWrite: number; }; contextWindow: number; maxTokens: number; }; readonly "deepseek-reasoner": { id: string; name: string; api: "openai-completions"; provider: string; baseUrl: string; reasoning: true; input: "text"[]; cost: { input: number; output: number; cacheRead: number; cacheWrite: number; }; contextWindow: number; maxTokens: number; }; }; type ModelCatalog = typeof MODELS & { deepseek: typeof DEEPSEEK_MODELS; }; type ModelApi = ModelCatalog[TProvider][TModelId] extends { api: infer TApi; } ? (TApi extends Api ? TApi : never) : never; export declare function getModel(provider: TProvider, modelId: TModelId): Model>; export declare function getProviders(): KnownProvider[]; export declare function getModels(provider: TProvider): Model>[]; export declare function calculateCost(model: Model, usage: Usage): Usage["cost"]; /** * Check if a model supports xhigh thinking level. * * Resolution order: * 1. Explicit `model.compat.supportsXhigh` capability declaration (authoritative). * 2. Built-in detection for known model families (legacy fallback). * * Supported by built-in detection today: * - GPT-5.2 / GPT-5.3 / GPT-5.4 model families * - Opus 4.6 models (xhigh maps to adaptive effort "max" on Anthropic-compatible providers) */ export declare function supportsXhigh(model: Model): boolean; /** * Check if two models are equal by comparing both their id and provider. * Returns false if either model is null or undefined. */ export declare function modelsAreEqual(a: Model | null | undefined, b: Model | null | undefined): boolean; export {}; //# sourceMappingURL=models.d.ts.map