export type EncryptMigrationResult = 'migrated' | 'already-encrypted' | 'missing'; /** Exported for key-aware CLI opens (open-runtime-db.ts): a plaintext file * must be opened WITHOUT a key — PRAGMA key on plaintext reads as garbage. */ export declare function isPlaintextSqlite(dbPath: string): boolean; /** * Detects a plaintext DB at `dbPath` and migrates it to encrypted form with * `key`. Returns: * - 'missing' — no file at dbPath (fresh install; openDb() with * a key will create an encrypted file directly). * - 'already-encrypted' — file exists and is not plaintext (already * migrated, or created encrypted from the start). * - 'migrated' — a plaintext DB was found and successfully * converted; `.pre-encryption.bak` now * holds the pre-migration plaintext copy. */ export declare function encryptIfPlaintext(dbPath: string, key: string): EncryptMigrationResult;