export type WebhookVerification = { readonly valid: true; } | { readonly valid: false; readonly reason: "missing_signature" | "missing_timestamp" | "invalid_timestamp" | "expired" | "mismatch"; }; export interface WebhookVerifyArgs { readonly body: string; readonly signatureHeader: string | undefined; readonly timestampHeader: string | undefined; readonly secret: string; /** Override the current time (epoch seconds). Defaults to Date.now()/1000. */ readonly now?: number; /** Replay window in seconds. Defaults to 300. */ readonly maxAgeSeconds?: number; } export declare function verifyWebhook(args: WebhookVerifyArgs): WebhookVerification; //# sourceMappingURL=webhook.d.ts.map