export interface ModelEntry { id: string; owned_by: string; context_window?: number; max_tokens?: number; } export declare const CACHE_PATH: string; export declare function filterModels(models: ModelEntry[], input: string): ModelEntry[]; export interface ResolvedModel { model: string; warning?: string; contextWindow?: number; } export declare function resolveExplicitModel(flag: string, modelsPromise: Promise, stream: HintTarget): Promise; export declare function isModelEntryArray(x: unknown): x is ModelEntry[]; export interface HintTarget { write: (s: string) => boolean; } export declare function awaitModels(pending: Promise, opts: { stream: HintTarget; isTTY: boolean; }): Promise; export declare function discoverModels(baseUrl: string, apiKey: string, cachePath?: string): Promise;