/** * BRAIN writer-thread op handlers. * * Shared between the worker thread (`brain-writer-worker.ts`) and the * inline fallback executor inside `brain-writer-thread.ts`. Each op kind * lands here as its terminal SQL/orchestration call; **this is the only * module that opens a write handle to brain.db** during normal operation. * * Read-only callers continue to use `getBrainDb` / `getBrainNativeDb` on * the main thread — SQLite WAL allows concurrent readers. * * @task T10351 * @epic T10286 * @saga T10281 */ import type { BrainWriteOp, BrainWriteResult } from './brain-writer-thread.js'; /** * Dispatch a write op to its terminal handler. Throws on failure — the worker * envelope code converts the throw into an `ok:false` response. * * @param op - The discriminated write op. * @returns A typed `BrainWriteResult` mirroring the op's `kind`. */ export declare function handleWriteOp(op: BrainWriteOp): Promise; //# sourceMappingURL=brain-writer-handlers.d.ts.map