import type { ClaimedDelivery } from '../types/index.js'; export type TickDeps = { refreshSettings: () => Promise; cancelPendingForDisabled: () => Promise; reclaimStuck: () => Promise; claimDue: (limit: number) => Promise; deliver: (delivery: ClaimedDelivery) => Promise; getLogLimit: () => Promise; trimFinished: (limit: number) => Promise; trimFailed: () => Promise; logError: (e: unknown) => void; }; /** * One pass of the delivery worker (the `webhookProcessDeliveries` cron job): * * 1. cancel pending deliveries of disabled webhooks, * 2. reclaim `sending` rows whose worker died, * 3. claim the due retries and send them, `DELIVERY_CONCURRENCY` at a time, * 4. trim the log (finished rows beyond the limit, old failed rows). * * Each step is isolated: one failing never stops the next. */ export declare function runDeliveryTick(deps?: TickDeps): Promise<{ claimed: number; }>; /** The cron job entry point (`registerJob` resolves to this module). */ export default function processDeliveries(): Promise;