/** * Serialize sql.js read-modify-write cycles per database path within this * process. Callers that load a .db file, mutate it in WASM, then export+ * rename must wrap the entire cycle in this lock so concurrent MCP tool * calls don't each load a stale copy (last writer wins = data loss). * * Only protects within a single Node process — cross-process races need * file locking, which is a separate concern. */ export declare function withDbLock(dbPath: string, fn: () => Promise): Promise; //# sourceMappingURL=db-mutex.d.ts.map