import type { WebhookEventBase } from './types.js'; /** * Parse a raw webhook delivery body into a typed envelope. Throws * `WebhookSignatureError` if the body is not valid JSON or doesn't carry * the §4.1 envelope shape (`event_id`, `event_type`, `data`). Use * `verifyWebhook` for the full HMAC + replay-window verification — this * is the parsing-only half for cases where verification happened * out-of-band (e.g. behind a trusted gateway). * * **Consumers MUST dedupe by `event.event_id`** — webhook delivery is * at-least-once, so retries replay the same envelope. Without dedup, * processing the same event twice produces duplicate side-effects. */ export declare function parseWebhookEvent(rawBody: string): WebhookEventBase; //# sourceMappingURL=parse.d.ts.map