import type { WebhookEvent } from "../resources.mjs"; export type { WebhookEvent }; /** * Verifies the signature of a webhook payload and returns the payload if it's valid. * @param webhookRawBody - The raw body of the webhook request. * @param webhookSignatureHeader - The signature header of the webhook request. * @param webhookSecret - The secret used to sign the webhook request. If not provided, falls back to MODAPI_WEBHOOK_SECRET environment variable. Find this in your webhook settings. * @returns The payload of the webhook request if the signature is valid. * @throws An error if the signature is invalid. */ export declare const constructEvent: (webhookRawBody: Buffer, webhookSignatureHeader: string, webhookSecret?: string) => WebhookEvent; export declare const webhooks: { constructEvent: (webhookRawBody: Buffer, webhookSignatureHeader: string, webhookSecret?: string) => WebhookEvent; }; //# sourceMappingURL=webhooks.d.mts.map