import type { AgentModelConfig } from "../config/types.agents-shared.js"; import type { KlawConfig } from "../config/types.klaw.js"; import type { ProviderAuthMethod, ProviderPlugin } from "./types.js"; export declare function resolveProviderMatch(providers: ProviderPlugin[], rawProvider?: string): ProviderPlugin | null; export declare function pickAuthMethod(provider: ProviderPlugin, rawMethod?: string): ProviderAuthMethod | null; export declare function applyProviderAuthConfigPatch(cfg: KlawConfig, patch: unknown, options?: { replaceDefaultModels?: boolean; }): KlawConfig; /** * Restore `agents.defaults.model` after a provider auth config merge when the user did not pass * `--set-default`, so `applyConfig` patches cannot replace the primary without an explicit opt-in. */ export declare function restorePriorAgentsDefaultsModelUnlessOptIn(params: { cfg: KlawConfig; priorAgentsDefaultsModel?: AgentModelConfig; setDefault?: boolean; }): KlawConfig; export declare function applyDefaultModel(cfg: KlawConfig, model: string, opts?: { preserveExistingPrimary?: boolean; }): KlawConfig;