import type { BackupRecord } from '../types/index.js'; export declare function backupFile(root: string, relativePath: string): BackupRecord; export declare function restoreFile(root: string, record: BackupRecord): boolean; export declare function readManifest(root: string): BackupRecord[]; /** * v0.9.2 P0-9 (F3.c): expose manifest status so callers (uninstall) can tell * "no backups" from "manifest exists but is unreadable". Previously both * returned `[]` and the uninstaller silently claimed success — potential * data loss if the user's original files had been overwritten. */ export type ManifestStatus = 'ok' | 'missing' | 'corrupt'; export declare function readManifestWithStatus(root: string): { records: BackupRecord[]; status: ManifestStatus; }; export declare function writeManifest(root: string, records: BackupRecord[]): void;