import { type InboxEntry, type InboxEntryInput } from './inbox.js'; /** Atomically append one finalized entry to `nodes//passive.jsonl`. */ export declare function appendPassive(nodeId: string, entry: InboxEntryInput): InboxEntry; /** Return every accumulated passive entry (oldest first) without clearing. */ export declare function readPassive(nodeId: string): InboxEntry[]; /** * Read AND clear the accumulator in one shot — the drain-on-message primitive. * * We rename the file aside before reading so a concurrent `appendPassive` (a * publisher pushing at the same instant) starts a fresh file and is never lost * to the truncate: at worst it lands in the next drain. The renamed snapshot is * removed after a successful read. Returns the drained entries (oldest first). */ export declare function drainPassive(nodeId: string): InboxEntry[];