/** * Webhook signature verification. * * Compose delivery uses a Stripe-style signature header: * `X-Signature: t=,v1=` * where `v1` is `HMAC-SHA256(timestamp + "." + payload, secret)`. * * `verify()` is a constant-time comparison. */ export interface WebhookEvent { id?: string; type: string; timestamp: number; data: T; } export interface VerifyWebhookInput { body: string; signature: string; secret: string; /** Max allowed skew between `t` and now, in seconds. Default 300 (5 min). */ toleranceSeconds?: number; } export declare class WebhooksResource { verify(input: VerifyWebhookInput): Promise; constructEvent(input: VerifyWebhookInput): Promise>; } //# sourceMappingURL=webhooks.d.ts.map