import type { WebhookEventBase } from "../types/webhooks.js"; /** Request-like object with raw body and Contiguity-Signature header */ export interface WebhookRequestLike { body?: string | Buffer; rawBody?: string | Buffer; headers?: Record | { get(name: string): string | null; }; } export declare class WebhookResource { /** * Verify webhook signature. * Call as verify(req, secret, toleranceSeconds?) or verify(rawBody, signatureHeader, secret, toleranceSeconds?). */ verify(rawBodyOrReq: string | Buffer | WebhookRequestLike, signatureHeaderOrSecret?: string, secretOrTolerance?: string | number, toleranceSeconds?: number): boolean; /** * Parse raw webhook body to a typed event (v2 format). */ parse(rawBody: string | Buffer): WebhookEventBase; } //# sourceMappingURL=webhook.d.ts.map