/** * Shared read-only SQLite access for adapters whose sources store sessions in * SQLite (Hermes, OpenClaw). Uses Node's built-in `node:sqlite` (22.13+ / * 24+), opened with `mode: 'immutable'` so a live source's WAL/database is * never touched, locked, or checkpointed. */ import { DatabaseSync } from 'node:sqlite'; /** True when the runtime provides node:sqlite (guards older Nodes). */ export declare function sqliteAvailable(): boolean; /** * Open a SQLite database strictly read-only. `immutable` tells SQLite the * file cannot change (no locking, no WAL recovery attempt) — correct for * snapshots and safe against a concurrently-running source. */ export declare function openReadOnly(path: string): DatabaseSync;