import type { EventBacklog } from '../../../services/ports/eventBacklog.js'; type EventStatus = 'pending' | 'processing' | 'failed'; /** What the contract needs to put events in the queue; each implementation brings one. */ export interface EventBacklogHarness { backlog: EventBacklog; /** An event of any name; a `processing` one began `startedAgoMs` ago. */ add(status: EventStatus, startedAgoMs?: number, name?: string): Promise; } /** The fake queue, as a harness for the contract. */ export declare function fakeEventHarness(): EventBacklogHarness; /** * What every `EventBacklog` must count (ยง 8.5): the events that wait for the * event process. Core marks an event `processing` for more than five minutes as * lost, so such an event is not waiting for anyone. It runs against the fake * and against PostgreSQL. */ export declare function eventBacklogContract(label: string, make: () => Promise): void; export {};