import type { ServiceMigrationBackup } from "./service-migration-types.js"; export interface ServiceMigrationTargetFile { path: string; bytes: Buffer; mode: number; } /** * 可信服务协调器须持有服务级锁,并在调用前持久化迁移意图及备份。 * 多文件变更不是整体原子事务;部分完成可通过 canRestore/restore 对账。 * 同用户恶意进程可在最后核验与 rename/unlink 间竞争,不属于进程隔离承诺。 */ export declare class ServiceMigrationFiles { private readonly entries; constructor(backup: ServiceMigrationBackup, targets: ServiceMigrationTargetFile[], /** 从持久化旧工件契约派生,不能使用临时客户端路径。省略时恢复原文件。 */ rollback?: ServiceMigrationTargetFile[]); matchesOriginal(): boolean; matchesTarget(): boolean; matchesRestored(): boolean; apply(): void; canRestore(): boolean; restore(): void; private restorable; } //# sourceMappingURL=service-migration-files.d.ts.map