/**
 * @license
 * Copyright 2026 HopCode Team
 * SPDX-License-Identifier: Apache-2.0
 */
/**
 * Live model fetching for Ollama (local and cloud).
 * Falls back to the static catalog if the endpoint is unreachable.
 */
import type { ModelCategory } from './catalog.js';
/**
 * Fetches installed models from a running Ollama daemon via `/api/tags`.
 * For Ollama Cloud, also falls back to the OpenAI-compatible `/v1/models`
 * endpoint if `/api/tags` is unreachable or returns nothing.
 *
 * @param baseUrl  - e.g. http://localhost:11434/v1 or https://ollama.com/v1
 * @param apiKey   - Bearer token for Ollama Cloud (OLLAMA_API_KEY); omit for local
 * @param timeoutMs - max wait time per attempt before falling back
 */
export declare function fetchOllamaModels(baseUrl: string, apiKey?: string, timeoutMs?: number): Promise<ModelCategory[] | null>;
