import { type ModelDescription } from "../model-catalog.js"; import { type ProviderModelMetadataUnavailableReason } from "../provider-model-metadata.js"; export interface DescribeModelsResult { engine?: string; /** * Whether the engine's provider list was read. "unavailable" means the * descriptions fell back to the catalog because the read failed; * "not-applicable" means the engine has no provider list we read. */ metadata: { state: "available"; fetchedAt: number; } | { state: "unavailable"; reason: ProviderModelMetadataUnavailableReason; status?: number; } | { state: "not-applicable"; }; models: ModelDescription[]; } declare const _default: import("../../action.js").ActionDefinition<{ models?: string[] | undefined; engine?: string | undefined; }, { engine?: string | undefined; metadata: { state: "available"; fetchedAt: number; } | { state: "unavailable"; reason: "credential-unreadable" | "missing-key" | "provider-error" | "rejected" | "unreachable"; status?: number | undefined; } | { state: "not-applicable"; }; models: { modelId: string; engine?: string | undefined; known: boolean; catalogId?: string | undefined; name?: string | undefined; shortName?: string | undefined; descriptorId?: "balanced" | "fastCoding" | "fastLightweight" | "fastLowerCost" | "flagship" | "lowestCost" | "openWeightCoding" | "previousGeneration" | "recommended" | "smallCoding" | "smallLowCost" | undefined; descriptor?: string | undefined; description?: string | undefined; provider?: "anthropic" | "deepseek" | "google" | "inception" | "meta" | "moonshot" | "openai" | "qwen" | "xai" | "zai" | undefined; ratings?: { cost: 1 | 2 | 3 | 4 | 5; reasoning: 1 | 2 | 3 | 4 | 5; speed: 1 | 2 | 3 | 4 | 5; } | undefined; recommended: boolean; recommendedRank?: number | undefined; rootRank?: number | undefined; providerDefaultEffort?: "auto" | "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | undefined; contextWindow?: number | undefined; efforts: ("auto" | "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh")[]; billing?: { kind: "builder-credits"; } | { kind: "provider-key"; provider: string; } | { kind: "subscription"; plan: string; } | undefined; source: "catalog" | "provider"; }[]; }>; export default _default;