/** * Provider utility functions extracted from model-selection.ts. * * These are the surviving utilities after the in-process LLM model management * layer was removed. Provider normalization, model ref parsing, and * config-reading model resolution are still needed by auth-profiles, config, * plugin-auto-enable, status reporting, session defaults, and similar * middleware infrastructure. CLI runtimes own model SELECTION; middleware * still reads the configured default from RemoteClawConfig. */ import type { RemoteClawConfig } from "../config/config.js"; /** * Runtime attestation (ADR 0005 H9). Declares the implementation status * of each runtime export in this module. See CONTRIBUTING.md ยง Module * attestations for the category definitions and the convention for * updating these when sync or rebrand changes the surface. */ export declare const MODULE_ATTESTATIONS: { readonly modelKey: "live"; readonly normalizeProviderId: "live"; readonly findNormalizedProviderValue: "live"; readonly findNormalizedProviderKey: "live"; readonly isCliProvider: "live"; readonly normalizeGoogleModelId: "live"; readonly normalizeModelRef: "live"; readonly parseModelRef: "live"; readonly buildModelAliasIndex: "live"; readonly resolveConfiguredModelRef: "live"; readonly resolveDefaultModelForAgent: "live"; }; export type ModelRef = { provider: string; model: string; }; export declare function modelKey(provider: string, model: string): string; export declare function normalizeProviderId(provider: string): string; export declare function findNormalizedProviderValue(entries: Record | undefined, provider: string): T | undefined; export declare function findNormalizedProviderKey(entries: Record | undefined, provider: string): string | undefined; export declare function isCliProvider(provider: string, cfg?: RemoteClawConfig): boolean; export declare function normalizeGoogleModelId(id: string): string; export declare function normalizeModelRef(provider: string, model: string): ModelRef; export declare function parseModelRef(raw: string, defaultProvider: string): ModelRef | null; export type ModelAliasIndex = { byAlias: Map; byKey: Map; }; export declare function buildModelAliasIndex(params: { cfg: RemoteClawConfig; defaultProvider: string; allowPluginNormalization?: boolean; }): ModelAliasIndex; export declare function resolveConfiguredModelRef(params: { cfg: RemoteClawConfig; defaultProvider: string; defaultModel: string; allowPluginNormalization?: boolean; }): ModelRef; export declare function resolveDefaultModelForAgent(params: { cfg: RemoteClawConfig; agentId?: string; }): ModelRef;