import type { ScheduleOccurrence } from "#public/schedules/subscription.js"; export interface ScheduleDelivery { readonly payload: TPayload; readonly occurrence: ScheduleOccurrence; } export interface ScheduleDeliveryTarget { readonly key: string; readonly deliver?: (delivery: ScheduleDelivery) => Promise; } export interface ScheduleProviderContext { readonly abortSignal: AbortSignal; readonly collection: string; readonly namespace: string; readonly operationId: string; readonly target: ScheduleDeliveryTarget; }