/**
 * config-patch handler — PR-5a
 *
 * JSON deep-merge into a target config file (e.g. .claude/settings.json).
 * Idempotent: duplicate hook entries are detected and skipped.
 *
 * Merge semantics:
 *   - Plain objects: keys from patch are merged into target (deep).
 *   - Arrays: patch array items appended unless already present (by value equality).
 *   - Primitive values: patch wins over existing.
 *   - If the target file does not exist, the patch becomes the initial content.
 *
 * @connexum/ai-governance PR-5a
 */
import { ConfigPatchPayload, RemediationDiff } from '../types';
export interface ConfigPatchApplyResult {
    filePath: string;
    before: string;
    after: string;
    diff: RemediationDiff;
    alreadyApplied: boolean;
}
/**
 * Compute the patched content for a config file.
 * Returns the before + after strings so the caller can decide to write or not.
 */
export declare function applyConfigPatch(agentDir: string, payload: ConfigPatchPayload): ConfigPatchApplyResult;
/**
 * Write the patched config file to disk.
 */
export declare function writeConfigPatch(agentDir: string, payload: ConfigPatchPayload): ConfigPatchApplyResult;
//# sourceMappingURL=config-patch.d.ts.map