import { r as KlawConfig } from "./types.klaw-xKUw_Rz7.js"; import { t as ModelCatalogEntry } from "./model-catalog.types-DT_5duBc.js"; import { n as ModelRef, t as ModelManifestNormalizationContext } from "./model-selection-normalize-BfBKbf9z.js"; //#region src/agents/model-thinking-default.d.ts type ThinkLevel$1 = "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "adaptive" | "max"; declare function resolveThinkingDefault(params: { cfg: KlawConfig; provider: string; model: string; catalog?: ModelCatalogEntry[]; }): ThinkLevel$1; declare function resolveThinkingDefaultWithRuntimeCatalog(params: { cfg: KlawConfig; provider: string; model: string; loadModelCatalog: () => Promise; }): Promise; //#endregion //#region src/agents/model-selection-shared.d.ts type ModelManifestPlugins = ModelManifestNormalizationContext["manifestPlugins"]; type ModelAliasIndex = { byAlias: Map; byKey: Map; }; declare function inferUniqueProviderFromConfiguredModels(params: { cfg: KlawConfig; model: string; } & ModelManifestNormalizationContext): string | undefined; declare function inferUniqueProviderFromCatalog(params: { catalog: readonly ModelCatalogEntry[]; model: string; }): string | undefined; declare function resolveBareModelDefaultProvider(params: { cfg: KlawConfig; catalog: readonly ModelCatalogEntry[]; model: string; defaultProvider: string; } & ModelManifestNormalizationContext): string; declare function buildConfiguredAllowlistKeys(params: { cfg: KlawConfig | undefined; defaultProvider: string; } & ModelManifestNormalizationContext): Set | null; declare function buildModelAliasIndex(params: { cfg: KlawConfig; defaultProvider: string; allowManifestNormalization?: boolean; allowPluginNormalization?: boolean; } & ModelManifestNormalizationContext): ModelAliasIndex; declare function resolveModelRefFromString(params: { cfg?: KlawConfig; raw: string; defaultProvider: string; aliasIndex?: ModelAliasIndex; allowManifestNormalization?: boolean; allowPluginNormalization?: boolean; } & ModelManifestNormalizationContext): { ref: ModelRef; alias?: string; } | null; declare function resolveConfiguredModelRef(params: { cfg: KlawConfig; defaultProvider: string; defaultModel: string; allowManifestNormalization?: boolean; allowPluginNormalization?: boolean; } & ModelManifestNormalizationContext): ModelRef; type ModelRefStatus = { key: string; inCatalog: boolean; allowAny: boolean; allowed: boolean; }; declare function buildConfiguredModelCatalog(params: { cfg: KlawConfig; workspaceDir?: string; manifestPlugins?: ModelManifestPlugins; }): ModelCatalogEntry[]; declare function resolveHooksGmailModel(params: { cfg: KlawConfig; defaultProvider: string; } & ModelManifestNormalizationContext): ModelRef | null; declare function normalizeModelSelection(value: unknown): string | undefined; //#endregion //#region src/agents/model-selection-cli.d.ts declare function isCliProvider(provider: string, cfg?: KlawConfig): boolean; //#endregion //#region src/agents/model-selection.d.ts type ThinkLevel = "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "adaptive" | "max"; declare function resolvePersistedOverrideModelRef(params: { defaultProvider?: unknown; overrideProvider?: unknown; overrideModel?: unknown; allowPluginNormalization?: boolean; }): ModelRef | null; /** * Runtime-first resolver for persisted model metadata. * Use this when callers intentionally want the last executed model identity. */ declare function resolvePersistedModelRef(params: { defaultProvider?: unknown; runtimeProvider?: unknown; runtimeModel?: unknown; overrideProvider?: unknown; overrideModel?: unknown; allowPluginNormalization?: boolean; }): ModelRef | null; /** * Selected-model resolver for persisted model metadata. * Use this for control/status/UI surfaces that should honor explicit session * overrides before falling back to runtime identity. */ declare function resolvePersistedSelectedModelRef(params: { defaultProvider?: unknown; runtimeProvider?: unknown; runtimeModel?: unknown; overrideProvider?: unknown; overrideModel?: unknown; allowPluginNormalization?: boolean; }): ModelRef | null; declare function normalizeStoredOverrideModel(params: { providerOverride?: unknown; modelOverride?: unknown; }): { providerOverride?: string; modelOverride?: string; }; declare function resolveAllowlistModelKey(raw: string, defaultProvider: string, cfg?: KlawConfig, manifestPlugins?: ModelManifestNormalizationContext["manifestPlugins"]): string | null; declare function resolveDefaultModelForAgent(params: { cfg: KlawConfig; agentId?: string; allowPluginNormalization?: boolean; } & ModelManifestNormalizationContext): ModelRef; declare function canonicalizeCaseOnlyCatalogModelRef(params: { raw: string | undefined; cfg?: KlawConfig; defaultProvider: string; loadCatalog: () => Promise; aliasIndex?: ModelAliasIndex; allowManifestNormalization?: boolean; allowPluginNormalization?: boolean; preserveAuthProfile?: boolean; }): Promise; declare function resolveSubagentConfiguredModelSelection(params: { cfg: KlawConfig; agentId: string; }): string | undefined; declare function resolveSubagentSpawnModelSelection(params: { cfg: KlawConfig; agentId: string; modelOverride?: unknown; }): string; declare function buildAllowedModelSet(params: { cfg: KlawConfig; catalog: ModelCatalogEntry[]; defaultProvider: string; defaultModel?: string; agentId?: string; } & ModelManifestNormalizationContext): { allowAny: boolean; allowedCatalog: ModelCatalogEntry[]; allowedKeys: Set; }; declare function getModelRefStatus(params: { cfg: KlawConfig; catalog: ModelCatalogEntry[]; ref: ModelRef; defaultProvider: string; defaultModel?: string; } & ModelManifestNormalizationContext): ModelRefStatus; declare function resolveAllowedModelRef(params: { cfg: KlawConfig; catalog: ModelCatalogEntry[]; raw: string; defaultProvider: string; defaultModel?: string; } & ModelManifestNormalizationContext): { ref: ModelRef; key: string; } | { error: string; }; /** Default reasoning level when session/directive do not set it: "on" if model supports reasoning, else "off". */ declare function resolveReasoningDefault(params: { provider: string; model: string; catalog?: ModelCatalogEntry[]; }): "on" | "off"; //#endregion export { normalizeModelSelection as C, resolveModelRefFromString as D, resolveHooksGmailModel as E, resolveThinkingDefault as O, inferUniqueProviderFromConfiguredModels as S, resolveConfiguredModelRef as T, ModelRefStatus as _, normalizeStoredOverrideModel as a, buildModelAliasIndex as b, resolveDefaultModelForAgent as c, resolvePersistedSelectedModelRef as d, resolveReasoningDefault as f, ModelAliasIndex as g, isCliProvider as h, getModelRefStatus as i, resolveThinkingDefaultWithRuntimeCatalog as k, resolvePersistedModelRef as l, resolveSubagentSpawnModelSelection as m, buildAllowedModelSet as n, resolveAllowedModelRef as o, resolveSubagentConfiguredModelSelection as p, canonicalizeCaseOnlyCatalogModelRef as r, resolveAllowlistModelKey as s, ThinkLevel as t, resolvePersistedOverrideModelRef as u, buildConfiguredAllowlistKeys as v, resolveBareModelDefaultProvider as w, inferUniqueProviderFromCatalog as x, buildConfiguredModelCatalog as y };