/**
 * Mutate `agents.list` / bindings when adding or removing agents.
 */
import type { Config } from '../config/schema.js';
import { listAgentEntries } from '../agent/agent-scope.js';
type AgentEntry = NonNullable<NonNullable<Config['agents']>['list']>[number];
export { listAgentEntries };
export declare function findAgentEntryIndex(list: AgentEntry[], agentId: string): number;
export declare function applyAgentConfig(cfg: Config, params: {
    agentId: string;
    name?: string;
    description?: string;
    workspace?: string;
    agentDir?: string;
    model?: string;
}): Config;
export declare function pruneAgentConfig(cfg: Config, agentId: string): {
    config: Config;
    removedBindings: number;
};
export declare function removeAgentDirsFromDisk(cfg: Config, id: string): Promise<void>;
