/** * Model resolution: exact match ("provider/modelId") with fuzzy fallback. */ import type { Api, Model } from "@earendil-works/pi-ai"; export interface ModelEntry { id: string; name: string; provider: string; } export interface ModelRegistry { find(provider: string, modelId: string): Model | undefined; getAll(): ModelEntry[]; getAvailable?(): ModelEntry[]; } /** * Resolve a model string to a Model instance. * Tries exact match first ("provider/modelId"), then fuzzy match against all available models. * Returns the Model on success, or an error message string on failure. */ export declare function resolveModel(input: string, registry: ModelRegistry): Model | string;