import type { DB } from '../storage/db.js'; export interface SnapshotResult { path: string; size_bytes: number; duration_ms: number; } /** * Create an online-safe snapshot of `db` to `outPath`. * * The directory containing outPath is created if it does not exist. * Uses db.backup() (online-safe, zero downtime) when available; falls back * to `VACUUM INTO` otherwise. When `db` is an encrypted (SQLCipher) database, * the backup/VACUUM INTO output is encrypted with the same key — SQLite's * online backup API and VACUUM INTO both operate on the live connection's * pages, so ciphertext pages are copied as ciphertext (SEC-8). * * @param db An open better-sqlite3-multiple-ciphers Database instance. * @param outPath Absolute destination path for the snapshot file. * @returns Metadata about the written snapshot. */ export declare function createSnapshot(db: DB, outPath: string): Promise;