import { DuffelResponse, PaginationMeta, Webhooks as WebhooksType, WebhooksCreateParams, WebhooksCreateResponse, WebhooksListDeliveriesParams, WebhooksListDeliveriesResponse, WebhooksListResponse, WebhooksUpdateParams } from '../../types'; import { Resource } from '../../Resource'; import { Client } from '../../Client'; export declare class Webhooks extends Resource { /** * Endpoint path */ path: string; constructor(client: Client); /** * Trigger a re-delivery of an event to a webhook. * @param {string} id - Duffel's unique identifier for the webhook event * @link https://duffel.com/docs/api/v1/webhooks/schema#webhooks-retry-delivering-a-webhook-event-url-parameters-id */ redeliver: (id: string) => Promise>; /** * Send a ping, a "fake event" notification, to a webhook. * @param {string} id - Duffel's unique identifier for the webhook receiver */ ping: (id: string) => Promise>; /** * Retrieves a webhook event by its ID. * @param {string} id- Duffel's unique identifier for the webhook event */ get: (id: string) => Promise>; /** * Retrieve a paginated list of webhook deliveries * @param {Object.} params - Endpoint options */ listDeliveries: ({ ...params }: WebhooksListDeliveriesParams) => Promise>; /** * Delete a webhook * @param {string} id - Duffel's unique identifier for the webhook receiver */ delete: (id: string) => Promise>; /** * Update a webhook * @param {string} id - Duffel's unique identifier for the webhook receiver */ update: (id: string, { active, events, url }: WebhooksUpdateParams) => Promise>; /** * Retrieve a paginated list of webhook * @param {Object.} params - Endpoint options */ list: ({ ...params }: PaginationMeta) => Promise>; /** * Create a webhook * @param {Object.} params - Endpoint options */ create: ({ events, url, }: WebhooksCreateParams) => Promise>; }