import type Stripe from "stripe"; export interface PollResult { cursor: string | null; count: number; /** Events whose handler failed every attempt and were SKIPPED to keep the sweep * moving. Empty on a clean poll. Reported, never silent — see `onEventFault`. */ skipped?: Array<{ id: string; error: unknown; }>; } /** Poll Stripe events newer than `after` (last processed event id), oldest * first. No `after` → baseline to the newest event, process nothing. */ export declare function pollStripeEvents(opts: { after?: string | null; types?: string[]; onEvent: (event: Stripe.Event) => Promise; maxPerPoll?: number; }): Promise; /** Poll WorkOS events of the given types newer than `after`, oldest first. * No `after` → baseline to the newest event, process nothing. */ export declare function pollWorkOSEvents(opts: { after?: string | null; events: string[]; onEvent: (event: { id: string; event: string; data: unknown; }) => Promise; maxPerPoll?: number; }): Promise; //# sourceMappingURL=events.d.ts.map