import { WebhookEventKind, DeliveryStatusWebhookEvent, CourierUpdateWebookEvent, RefundRequestWebhookEvent } from './types/WebhookTypes.js'; import { UberDirectTypeProtectErrorHandling } from './UberDirectTypeProtect.js'; import 'zod'; declare class UberDirectWebhook extends UberDirectTypeProtectErrorHandling { private readonly secret; constructor(secret: string); verifySignature(payload: string, signatureHeader: string): boolean; verifySignatureWebhook(payload: string, headers: Record): boolean; getRequestEventKind(payload: string | Record): WebhookEventKind; /** * Webhooks allow you to receive real-time updates to your ongoing deliveries. By configuring a URL we can POST updates to, * you’ll get the most up-to-date information to show to your customers. * @param payload * @param headers */ verifyAndHandleWebhook(payload: string | Record, headers: Record): DeliveryStatusWebhookEvent | CourierUpdateWebookEvent | RefundRequestWebhookEvent; handleWebhook(payload: string | Record): DeliveryStatusWebhookEvent | CourierUpdateWebookEvent | RefundRequestWebhookEvent; private calculateSignature; } export { UberDirectWebhook };