import { a as AiModelRecord, g as ModelResolverOptions, c as ModelResolutionInput, e as ModelResolutionResult } from './types-B7BnnrsK.cjs'; import * as _x12i_ai_profiles from '@x12i/ai-profiles'; import { RegistrySourceMode } from '@x12i/ai-profiles'; type LoadCatalogOptions = { /** * Catalog source mode for `@x12i/ai-profiles` (`auto` | `remote` | `bundled`). * When `bundledOnly` is true, forced to `bundled`. */ source?: RegistrySourceMode; /** When true, skip remote and use ai-profiles bundled catalog only. */ bundledOnly?: boolean; /** @deprecated Ignored — catalog SoT is `@x12i/ai-profiles`. */ directCatalogUrl?: string; /** @deprecated Ignored — catalog SoT is `@x12i/ai-profiles`. */ openRouterCatalogUrl?: string; /** @deprecated Ignored — fetch timeout is owned by ai-profiles. */ fetchTimeoutMs?: number; }; type LoadedCatalogs = { direct: Map; openrouter: Map; meta: { directSource: "remote" | "bundled"; openRouterSource: "remote" | "bundled"; directUrl: string; openRouterUrl: string; directCount: number; openRouterCount: number; }; }; /** Load unified models catalog from `@x12i/ai-profiles` (direct + OpenRouter slices). */ declare function loadCatalogSources(options?: LoadCatalogOptions): Promise; /** Load ai-profiles bundled catalog only (CLI / tests). */ declare function readBundledCatalogFiles(): Promise; /** Convenience: load catalog JSON via ai-profiles without mapping to AiModelRecord. */ declare function loadAiProfilesModelsCatalog(options?: LoadCatalogOptions): Promise<_x12i_ai_profiles.ModelsCatalogJson>; type AiModelsCatalogClientOptions = LoadCatalogOptions & { cacheTtlMs?: number; /** Cache scope key (default: `default`). */ cacheKey?: string; resolverOptions?: ModelResolverOptions; }; declare class AiModelsCatalogClient { private readonly cacheTtlMs; private readonly cacheKey; private readonly loadOptions; private readonly resolverOptions?; private directModels; private openRouterModels; private loadedAt; private loadPromise; constructor(options?: AiModelsCatalogClientOptions); private isInstanceCacheValid; private applyLoaded; private ensureLoaded; mergedModels(): Map; private catalogForProvider; private resolver; getAllModels(): Promise>; getDirectModels(): Promise>; getOpenRouterModels(): Promise>; resolveModel(input: ModelResolutionInput, options?: ModelResolverOptions): Promise; private resolveFromCatalogMaps; private alignForOpenRouterTransport; private resolveViaProfile; getModel(modelId: string, provider?: string, options?: ModelResolverOptions): Promise; /** Clear caches and fetch catalogs again immediately. */ refresh(): Promise; } export { AiModelsCatalogClient as A, type LoadCatalogOptions as L, type AiModelsCatalogClientOptions as a, type LoadedCatalogs as b, loadCatalogSources as c, loadAiProfilesModelsCatalog as l, readBundledCatalogFiles as r };