/** * /api/operator -- read-mostly operator surface for the Viewer's operator board. * * Reads the trigger loop's own store (~/.mama/operator/triggers.db by default) * through a second in-process connection. triggers.db uses the default rollback * journal (TriggerRegistry sets no WAL pragma), so this connection sets an * explicit busy_timeout: reads and the rare owner disable() retry instead of * throwing SQLITE_BUSY when the loop holds the file. * * The dbPath is injection-only: tests pass a temp path; the production path is * resolved solely at the mount site in api/index.ts (never inside this module). */ import { Router } from 'express'; import type { ReportStore } from './report-handler.js'; export declare function createOperatorRouter(opts: { dbPath: string; reportStore: ReportStore; }): Router; //# sourceMappingURL=operator-handler.d.ts.map