import type { NiuBotConfig } from "../config.js"; export declare const PREFLIGHT_DATABASE_MANIFEST_ENV = "NIUBOT_PREFLIGHT_DATABASE_MANIFEST"; export declare const PREFLIGHT_FULL_VALIDATION_ENV = "NIUBOT_PREFLIGHT_FULL_VALIDATION"; export declare function shouldRunFullPreflight(env?: NodeJS.ProcessEnv): boolean; export interface SnapshotRecord { databasePath: string; existed: boolean; rollbackPath?: string; mode?: number; } export interface RestartDatabaseSnapshot { rootDirectory: string; manifestPath: string; records: SnapshotRecord[]; } export declare function assertDatabasesAtCompatibleSchemaVersion(databasePaths: string[], compatibleVersions: readonly number[], candidateSchemaVersion: number): void; export declare function createRestartDatabaseSnapshot(options: { rootDirectory: string; databasePaths: string[]; backupTimeoutMs?: number; }): Promise; export declare function applyPreflightDatabaseManifest(config: NiuBotConfig, manifestPath: string): NiuBotConfig; export declare function restoreRestartDatabaseSnapshot(snapshot: RestartDatabaseSnapshot): void; export declare function cleanupRestartDatabaseSnapshot(snapshot: RestartDatabaseSnapshot): void;