import { Step } from '../types.js'; export declare function backupPathForTarget(targetAbs: string): string; /** * Plan an atomic replace for symlink target: * - create tmp symlink (done elsewhere) * - move existing target to backup * - move tmp into place * * This does NOT delete backups; leaving backups is safer and aids rollback. */ export declare function planReplaceTargetWithTmp(opts: { targetAbs: string; atomic: boolean; }): { backupAbs?: string; steps: Step[]; tmpAbs: string; };