import type { ScheduledHandler } from "aws-lambda"; import type { WorkerQueues } from "../queues.js"; /** * EventBridge-scheduled entry point for the periodic mailbox-sync tick * (#1247, restructured #1251). Ticks at `MAILBOX_SYNC_TICK_INTERVAL_SECONDS` * (rate schedule, wired in infra/stacks/dev/stacks/remit-worker-stack.ts) and * delegates the actual decision + enqueue to `runSchedulerTick` — the same * function the timer loop calls on a deployment with no EventBridge (see * `runner.ts`), so every deployment runs one code path. * * Uses the EventBridge event's own `time` (the scheduled fire time) as the * tick's `now`, rather than `Date.now()` at processing time. This is what * keeps `buildScheduledSyncDedupId`'s time bucket aligned to the schedule * instead of wall-clock/Lambda-cold-start jitter (review #1250): every * distinct scheduled firing gets a `time` exactly `tickIntervalMs` apart * from the last, so consecutive ticks always land in different buckets, * while a genuine retry of the same invocation carries the same `time` and * correctly dedupes. */ export declare const buildScheduledHandler: (queues: WorkerQueues) => ScheduledHandler; export declare const handler: ScheduledHandler;