/**
 * Persistent skip-list for one-time directory-scan migrations.
 *
 * Missing, unreadable, or malformed state is fail-open: every scan runs again.
 * Bump MIGRATIONS_STATE_SCHEMA_VERSION when a listed migration's semantics change.
 */
export declare const MIGRATIONS_STATE_SCHEMA_VERSION = 1;
export declare const MIGRATIONS_STATE_FILENAME = "migrations-state.json";
export declare const SCAN_MIGRATIONS: readonly ["migrateLegacySenpiDirs", "migrateSessionsFromAgentRoot", "restoreDrainedPiDirs"];
export type ScanMigrationName = (typeof SCAN_MIGRATIONS)[number];
/**
 * What the state records about the one-time copy of upstream pi's `~/.pi/agent`: when it happened,
 * and the pi file mtimes the startup notice already reported (omo#9173).
 */
export interface LegacyPiAgentDirRecord {
    readonly copiedAt?: number;
    readonly noticedMtimes: Readonly<Record<string, number>>;
}
export declare function readCompletedScanMigrations(agentDir?: string): ReadonlySet<ScanMigrationName>;
export declare function writeCompletedScanMigrations(completed: readonly ScanMigrationName[], agentDir?: string): void;
export declare function readLegacyPiAgentDirRecord(agentDir?: string): LegacyPiAgentDirRecord;
export declare function writeLegacyPiAgentDirRecord(record: LegacyPiAgentDirRecord, agentDir?: string): void;
/** A fresh copy restarts the notice history: every later pi edit is new to this agent dir. */
export declare function recordLegacyPiAgentDirCopy(agentDir?: string, copiedAt?: number): void;
//# sourceMappingURL=migrations-state.d.ts.map