/** * daemon/mailbox-watch.ts — a queued message that never gets read is not queued. * * `send_to_session` now says "queued" when it could not confirm the target took * the message, which is honest at the moment of sending. It stops being honest * with time. A message queued at 14:00 and still undrained at 18:00 is not * pending — it is lost, and an audit trail that still calls it "queued" is a * silent failure wearing a truthful label. That is harder to spot than an * obvious lie, because nothing looks wrong. * * So every state that can persist has to know how long it has been in that * state. The mailbox already stamps each message; this is the thing that looks. */ import { type MailboxMessage } from "../core/state.js"; /** How long a message may sit undrained before it is a fault rather than a wait. */ export declare const STALE_AFTER_MS: number; /** * Report messages that have outlived "queued". * * Exported for tests and callable directly; `now` is injected so ageing can be * exercised without waiting a quarter of an hour. */ export declare function sweepStaleMailboxes(now?: number): MailboxMessage[]; export declare function startMailboxWatch(): void; export declare function stopMailboxWatch(): void; //# sourceMappingURL=mailbox-watch.d.ts.map