export interface CleanupResult { pending: number; removed: number; warnings: string[]; } export declare function archiveRoot(statePath: string, id: string): string; /** Called under the migration write gate. Complete backups precede activation. */ export declare function prepareSourceArchive(statePath: string, root: string, id: string, owners: string[]): Promise; /** No source is removed until both the active version and its backup verify. * A changed source or incomplete backup is left intact and reported, not guessed. * Only called while services are stopped, never as an automatic startup sweep. */ export declare function cleanupArchivedSources(statePath: string, root: string, id: string): Promise; //# sourceMappingURL=source-archive.d.ts.map