import type { CheckinReceipt } from './types.js'; export declare class CheckinReceiptStore { private readonly store; private receipts; /** Whole-file writes run one at a time, in call order. See StoreWriteQueue. */ private readonly writes; constructor(path: string); private all; /** * Append a receipt (capped to the most recent MAX_RECEIPTS). * * The write is ORDERED against every other append. A check-in run is long, * it reads a state snapshot, asks a model to judge it, and delivers over a * channel, so the scheduled run and the manual verb overlap readily, and * `PersistentStore.persist` is atomic but says nothing about which of two * in-flight writes lands last. Unordered, the earlier run's write could land * second and replace the file with its own snapshot, which does not contain * the later run's receipt. The receipt is the whole point of this store: it is * how an automatic behavior stays visible, so losing one means a check-in that * contacted the owner with nothing on disk saying it ever ran. */ append(receipt: CheckinReceipt): Promise; /** Return receipts newest-first, optionally limited. */ list(limit?: number): Promise; } //# sourceMappingURL=receipts.d.ts.map