import type { Pool } from 'pg'; import type { EventBacklog } from '../services/ports/eventBacklog.js'; /** * The length of the event queue (ยง 8.5): the events `pending`, and those * `processing` for less than the time core allows before it counts them as lost * (`EventStorage`). Both counts use the index on `(status, event_id)`, and the * table holds only the events that are not done, so the query is cheap enough * for the worker to ask once a second. It reads every event, whoever wrote it. */ export declare class PgEventBacklog implements EventBacklog { private readonly pool; constructor(pool: Pool); depth(): Promise; }