import * as Effect from 'effect/Effect'; import * as SqlClient from 'effect/sql/SqlClient'; import * as RuntimeProvider from '@dxos/effect/RuntimeProvider'; /** * Executes "PRAGMA quick_check;" on SQLite database on startup. * * NOTE: Keep DISABLED in production, "quick" check is O(dbSize) which took 6 seconds for my relatively-small profile. */ export declare const RUN_SQLITE_QUICK_CHECK_ON_STARTUP = false; /** Timeout for the startup sqlite health check (schema probe + optional quick_check). */ export declare const SQLITE_HEALTH_CHECK_TIMEOUT_MS = 15000; /** * Sqlite health check on startup. * * Always runs a cheap schema-level probe (`PRAGMA schema_version` + a read from * `sqlite_schema`). These do not walk user data, but they fail fast if the DB * file header or schema root page is unreadable. * * Additionally runs `PRAGMA quick_check` when {@link RUN_SQLITE_QUICK_CHECK_ON_STARTUP} * is enabled. That walks every page and is O(dbSize) — slow on OPFS. */ export declare const testSqlite: () => Effect.Effect; /** * Run {@link testSqlite} via the service runtime before hypercore feed storage opens. * Timeout is outside the Effect runtime to catch the layer hanging on startup. */ export declare const runSqliteHealthCheck: (runtime: RuntimeProvider.RuntimeProvider, options?: { timeoutMs?: number; }) => Promise; //# sourceMappingURL=sqlite-health-check.d.ts.map