import type { PartnerState } from '../domain.js'; export interface MigrationResult { storageVersion: number; backupPath: string; retainedLegacy: boolean; cleanupPending?: number; } export interface LayoutMigrationContext { statePath: string; root: string; state: PartnerState; result?: MigrationResult; } /** Called only after every legacy writer has been stopped and drained. */ export declare function migrateLayout(statePath: string, root: string, state: PartnerState): Promise; export declare function verifyInstalledLayout(context: LayoutMigrationContext): Promise; export declare function commitLayoutVersion(context: LayoutMigrationContext, expected: number, next: number): Promise; //# sourceMappingURL=migrate-layout.d.ts.map