import { DEFAULT_MODEL, DEFAULT_PROVIDER } from "../../agents/defaults.js"; import { modelKey } from "../../agents/model-selection.js"; import { type BotConfig } from "../../config/config.js"; export declare const ensureFlagCompatibility: (opts: { json?: boolean; plain?: boolean; }) => void; export declare const formatTokenK: (value?: number | null) => string; export declare const formatMs: (value?: number | null) => string; export declare const isLocalBaseUrl: (baseUrl: string) => boolean; export declare function loadValidConfigOrThrow(): Promise; export declare function updateConfig(mutator: (cfg: BotConfig) => BotConfig): Promise; export declare function resolveModelTarget(params: { raw: string; cfg: BotConfig; }): { provider: string; model: string; }; export declare function resolveModelKeysFromEntries(params: { cfg: BotConfig; entries: readonly string[]; }): string[]; export declare function buildAllowlistSet(cfg: BotConfig): Set; export declare function normalizeAlias(alias: string): string; export declare function resolveKnownAgentId(params: { cfg: BotConfig; rawAgentId?: string | null; }): string | undefined; export type PrimaryFallbackConfig = { primary?: string; fallbacks?: string[]; }; export declare function mergePrimaryFallbackConfig(existing: PrimaryFallbackConfig | undefined, patch: { primary?: string; fallbacks?: string[]; }): PrimaryFallbackConfig; export declare function applyDefaultModelPrimaryUpdate(params: { cfg: BotConfig; modelRaw: string; field: "model" | "imageModel"; }): BotConfig; export { modelKey }; export { DEFAULT_MODEL, DEFAULT_PROVIDER }; /** * Model key format: "provider/model" * * The model key is displayed in `/model status` and used to reference models. * When using `/model `, use the exact format shown (e.g., "openrouter/moonshotai/kimi-k2"). * * For providers with hierarchical model IDs (e.g., OpenRouter), the model ID may include * sub-providers (e.g., "moonshotai/kimi-k2"), resulting in a key like "openrouter/moonshotai/kimi-k2". */