/**
 * SQLite corruption detector + auto-repair.
 *
 * Called from the daemon server before nexus.start() so any corrupt db is
 * backed up and removed before the engines try to open it (they recreate the
 * schema on open, giving a clean fresh db instead of a crash).
 *
 * Sync I/O is intentional here — this runs once at daemon startup on the
 * non-hot path, and better-sqlite3 is itself synchronous.
 */
export interface IntegrityCheckResult {
    /** db files that were found corrupt and backed up + removed */
    repaired: string[];
    /** db files whose integrity check passed */
    healthy: string[];
    /** db files that could not be opened at all (may themselves be corrupt) */
    failed: string[];
}
/**
 * Run integrity checks on every *.db file found directly inside stateRoot.
 * Emits `daemon.self-heal.db-corrupt` for each file that was repaired or failed.
 */
export declare function runIntegrityChecks(stateRoot: string): IntegrityCheckResult;
