import type { PartnerState } from '../domain.js'; import { StoragePreflight } from './preflight.js'; import { type MigrationResult } from './migrate-layout.js'; interface Ports { busy(): boolean; quiesce(): Promise; snapshot(): PartnerState; restart(): Promise; report(error: unknown): void; } export declare class StorageCoordinator extends StoragePreflight { private readonly configPath; private readonly workspaceRoot; private readonly currentVersion; private readonly ports; private migrating; private requests; enterRequest(): () => void; get running(): boolean; constructor(configPath: string, workspaceRoot: string, currentVersion: number, ports: Ports); status(): Promise<{ currentVersion: number; targetVersion: number; running: boolean; backupPath: string | undefined; cleanupPending: number; lastError: string | undefined; }>; private validate; start(expectedVersion: number): void; startCleanup(): void; private reload; migrate(expectedVersion: number): Promise; } export {}; //# sourceMappingURL=coordinator.d.ts.map