import type { AgentId, DetectedAgent } from '../agents.js';
import type { WriteResult } from './types.js';
export interface WriteMcpConfigOptions {
    dryRun?: boolean;
}
export interface WriteMcpConfigResult {
    results: WriteResult[];
    anyFailed: boolean;
}
export declare function writeMcpConfig(detected: DetectedAgent[], selected: AgentId[], opts?: WriteMcpConfigOptions): Promise<WriteMcpConfigResult>;
export type { WriteResult };
/**
 * Persist a single settings key to ~/.wigolo/config.json (or WIGOLO_CONFIG_PATH).
 * Read-modify-write: reads the current file, deep-sets the leaf at `path`, then
 * writes back the full merged settings so sibling keys under the same top-level
 * namespace are preserved.
 * Called by settings-store.commitOne on every blur event.
 */
export declare function persistKey(path: string, value: unknown): Promise<void>;
//# sourceMappingURL=write-config.d.ts.map