import { L as LoadCatalogOptions, b as LoadedCatalogs } from './AiModelsCatalogClient-DBSadPkS.js'; /** Canonical remote models catalog (owned by @x12i/ai-profiles). */ declare const DEFAULT_MODELS_CATALOG_URL = "https://open-assets.x12i.com/models-catalog.json"; /** @deprecated Use {@link DEFAULT_MODELS_CATALOG_URL}. Kept for API compatibility. */ declare const DEFAULT_DIRECT_CATALOG_URL = "https://open-assets.x12i.com/models-catalog.json"; /** @deprecated Dual OpenRouter catalog removed; unified catalog is the SoT. */ declare const DEFAULT_OPENROUTER_CATALOG_URL = "https://open-assets.x12i.com/models-catalog.json"; type CatalogSourceKind = "direct" | "openrouter"; declare function invalidateCatalogLoadCache(cacheKey?: string): void; type LoadCatalogCachedOptions = { cacheKey?: string; ttlMs?: number; /** Bypass cache and fetch again (e.g. `catalog refresh`). */ forceRefresh?: boolean; }; /** * Load catalogs with a process-wide in-memory cache. * Loads run at most once per TTL window (default 24h); concurrent callers share one in-flight request. */ declare function loadCatalogSourcesCached(options?: LoadCatalogOptions, cacheOptions?: LoadCatalogCachedOptions): Promise; type CatalogRefreshOptions = LoadCatalogOptions & { cacheKey?: string; cacheTtlMs?: number; }; type CatalogRefreshResult = { ok: true; directCount: number; openRouterCount: number; directSource: "remote" | "bundled"; openRouterSource: "remote" | "bundled"; }; /** Fetch remote catalogs via ai-profiles and warm the in-memory cache. */ declare function refreshAiModelsCatalog(options?: CatalogRefreshOptions): Promise; type CatalogVerifyOptions = LoadCatalogOptions & { cacheKey?: string; cacheTtlMs?: number; }; type CatalogVerifyReport = { ok: boolean; directCount: number; openRouterCount: number; directSource: "remote" | "bundled"; openRouterSource: "remote" | "bundled"; catalogUrl: string; /** @deprecated Same as {@link catalogUrl}. */ directUrl: string; /** @deprecated Same as {@link catalogUrl}. */ openRouterUrl: string; }; /** Load and validate the unified ai-profiles catalog (uses cache unless `forceRefresh`). */ declare function verifyAiModelsCatalog(options?: CatalogVerifyOptions & { forceRefresh?: boolean; }): Promise; /** Default in-memory catalog cache lifetime (24 hours). */ declare const DEFAULT_CATALOG_CACHE_TTL_MS: number; declare function resolveCatalogCacheTtlMs(override?: number): number; export { type CatalogRefreshOptions as C, DEFAULT_CATALOG_CACHE_TTL_MS as D, type LoadCatalogCachedOptions as L, type CatalogRefreshResult as a, type CatalogSourceKind as b, type CatalogVerifyOptions as c, type CatalogVerifyReport as d, DEFAULT_DIRECT_CATALOG_URL as e, DEFAULT_MODELS_CATALOG_URL as f, DEFAULT_OPENROUTER_CATALOG_URL as g, resolveCatalogCacheTtlMs as h, invalidateCatalogLoadCache as i, loadCatalogSourcesCached as l, refreshAiModelsCatalog as r, verifyAiModelsCatalog as v };