/**
 * Selector-based defaults for `agents run`.
 *
 * Stored under agents.yaml:
 *
 *   run:
 *     defaults:
 *       "claude:*":
 *         mode: auto
 *         model: opus
 *       "claude:2.1.45":
 *         mode: plan
 */
import type { AgentId, Mode, RunConfig, RunDefaults } from './types.js';
export declare const VERSION_RE: RegExp;
export interface ParsedRunDefaultSelector {
    agent: AgentId;
    version: string;
    selector: string;
}
export interface ResolvedRunDefaults extends RunDefaults {
    sources: {
        mode?: string;
        model?: string;
        effort?: string;
    };
}
export interface RunDefaultEntry {
    selector: string;
    defaults: RunDefaults;
}
type RunDefaultsInput = {
    mode?: unknown;
    model?: unknown;
    effort?: unknown;
};
export declare function normalizeRunDefaultMode(input: string): Mode;
export declare function parseRunDefaultSelector(input: string): ParsedRunDefaultSelector;
export declare function resolveRunDefaultsFromConfig(runConfig: RunConfig | undefined, agent: AgentId, version?: string | null): ResolvedRunDefaults;
export declare function resolveRunDefaultsFromConfigs(runConfigs: Array<RunConfig | undefined>, agent: AgentId, version?: string | null): ResolvedRunDefaults;
export declare function resolveRunDefaults(agent: AgentId, version?: string | null, startPath?: string): ResolvedRunDefaults;
export declare function formatRunDefaultEntry(entry: RunDefaultEntry): string;
export declare function listRunDefaults(): RunDefaultEntry[];
export declare function setRunDefault(selectorInput: string, defaultsInput: RunDefaultsInput): RunDefaultEntry;
export declare function unsetRunDefault(selectorInput: string): boolean;
/** Convenience setters used by `agents config` for single-field updates. */
export declare function setRunDefaultModel(selectorInput: string, model: string): RunDefaultEntry;
export declare function setRunDefaultMode(selectorInput: string, mode: string): RunDefaultEntry;
export declare function setRunDefaultEffort(selectorInput: string, effort: string): RunDefaultEntry;
export {};
