import type { EmailEvent } from "./types.js"; /** Parse an SNDR webhook payload into normalized {@link EmailEvent} records. */ export declare function parse(payload: unknown): EmailEvent[]; /** * Verify an SNDR webhook signature using HMAC-SHA256 (Web Crypto). * * Pass the **exact** raw request body string — re-serializing JSON breaks the HMAC. * * @param rawBody — Raw HTTP body bytes as UTF-8 string (or the string used when signing). * @param signatureHeader — Value of the `X-Sndr-Signature` header (`t=…,v1=…`). * @param secret — Webhook endpoint signing secret from SNDR. * @param opts.toleranceSeconds — Max age of `t` in seconds (default `300`). Pass `0` to skip. */ export declare function verifySignature(rawBody: string, signatureHeader: string, secret: string, opts?: { toleranceSeconds?: number; }): Promise;