import { createEventHandler } from "./event-handler/index"; import { EmitterWebhookEvent, EmitterWebhookEventName, HandlerFunction, RemoveHandlerFunction, Options, WebhookError, WebhookEventHandlerError, EmitterWebhookEventWithStringPayloadAndSignature, EmitterWebhookEventWithSignature } from "./types"; export { createNodeMiddleware } from "./middleware/node/index"; export { emitterEventNames } from "./generated/webhook-names"; declare class Webhooks { sign: (payload: string | object) => Promise; verify: (eventPayload: string | object, signature: string) => Promise; on: (event: E | E[], callback: HandlerFunction) => void; onAny: (callback: (event: EmitterWebhookEvent) => any) => void; onError: (callback: (event: WebhookEventHandlerError) => any) => void; removeListener: (event: E | E[], callback: RemoveHandlerFunction) => void; receive: (event: EmitterWebhookEvent) => Promise; verifyAndReceive: (options: EmitterWebhookEventWithStringPayloadAndSignature | EmitterWebhookEventWithSignature) => Promise; constructor(options: Options & { secret: string; }); } export { createEventHandler, Webhooks, EmitterWebhookEvent, EmitterWebhookEventName, WebhookError, };