import type { WebhookProvider } from "./index.mjs"; /** SendGrid Event Webhook verifier. SG signs each request with ECDSA * (P-256 / SHA-256): * - \`X-Twilio-Email-Event-Webhook-Timestamp\` * - \`X-Twilio-Email-Event-Webhook-Signature\` * * The signature is over \`\${timestamp}\${body}\` using the account's * public verification key (base64 DER). Verified via Web Crypto. */ export interface SendGridWebhookOptions { /** Base64-encoded SPKI public key (SendGrid's "Verification Key"). */ publicKey: string; toleranceSeconds?: number; now?: () => number; } export default function sendgridWebhook(options: SendGridWebhookOptions): WebhookProvider;