import { HeadersLike } from "../internal/headers.js"; import { APIResource } from "../resource.js"; export declare class Webhooks extends APIResource { /** * Validates that the given payload was sent by Metronome and parses the payload. */ unwrap(payload: string, headers: HeadersLike, secret?: string | undefined | null): Object; private validateSecret; private signPayload; /** Make an assertion, if not `true`, then throw. */ private assert; /** Compare to array buffers or data views in a way that timing based attacks * cannot gain information about the platform. */ private timingSafeEqual; /** * Validates whether or not the webhook payload was sent by Metronome. * * An error will be raised if the webhook payload was not sent by Metronome. */ verifySignature(body: string, headers: HeadersLike, secret?: string | undefined | null): void; } //# sourceMappingURL=webhooks.d.ts.map