import type { WebhookProvider } from "./index.mjs"; import { webCryptoHmacHex, bytesToHex } from "./_crypto.mjs"; /** Resend webhook verifier. Resend uses the Svix signature format: * - \`svix-id\`: unique id * - \`svix-timestamp\`: unix seconds * - \`svix-signature\`: space-separated \`v1,\` tokens * * The message HMAC'd is \`\${svix-id}.\${svix-timestamp}.\${body}\`. * * The secret must be provided with or without Svix's \`whsec_\` prefix. */ export interface ResendWebhookOptions { secret: string; /** Window in seconds to accept messages from. Default: 300. */ toleranceSeconds?: number; now?: () => number; } export default function resendWebhook(options: ResendWebhookOptions): WebhookProvider; export { webCryptoHmacHex, bytesToHex };