/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as WorkOS from "../../.."; export declare namespace Webhooks { interface Options { environment?: core.Supplier; authorizationToken?: core.Supplier; fetcher?: core.FetchFunction; } interface RequestOptions { timeoutInSeconds?: number; maxRetries?: number; } } export declare class Webhooks { protected readonly _options: Webhooks.Options; constructor(_options?: Webhooks.Options); /** * @example * await workOs.webhooks.verifyHeader("string") */ verifyHeader(payload: unknown, signatureHeader: string, secret: string): Promise; /** * @example * await workOs.webhooks.constructEvent("string") */ constructEvent(payload: unknown, signatureHeader: string, secret: string): Promise; private getTimestampAndSignatureHash; private computeSignature; }