/** * @fileoverview Read-only SQLite inspection orchestration and bounded native * query normalization. */ import Database from 'better-sqlite3'; import { type SqliteIntegrityResult } from './sqlite-integrity-contract.js'; /** @internal Deterministic transition seams for datastore-owned fault tests. */ export interface SqliteInspectionOptions { /** Reasserts caller authority immediately before the native read-only open. */ readonly beforeOpen?: () => void; } /** @internal Deterministic transition seams for datastore-owned fault tests. */ export interface SqliteInspectionDependencies extends SqliteInspectionOptions { readonly afterHash?: () => void; readonly afterFailure?: () => void; readonly openDatabase?: (path: string) => Database.Database; } /** * Inspect an existing SQLite file through a read-only, file-must-exist handle. * * No migrations, schema writes, vacuum, or auto-vacuum conversion occur here. * SQLite may itself materialize a zero-byte `-shm`/`-wal` sidecar while opening * an existing WAL database, so sidecar presence is captured both before and * after rather than claiming this path has no filesystem effects. */ export declare function inspectSqliteFile(path: string, options?: SqliteInspectionOptions): SqliteIntegrityResult; /** @internal Use {@link inspectSqliteFile} outside datastore tests. */ export declare function inspectSqliteFileWithDependencies(path: string, dependencies?: SqliteInspectionDependencies): SqliteIntegrityResult; //# sourceMappingURL=sqlite-inspection.d.ts.map