import { Client } from '../client'; import { UriHelper } from '../uri-helper'; import { ThBaseHandler } from '../base'; export interface WebhooksOptions { user?: string; base?: string; } export interface WebhookQuery { limit?: number; offset?: number; uri?: string; } export interface WebhookResponse { msg?: string; data?: Webhook[]; metadata?: Record; next?: () => Promise; } export interface WebhookRegenerateSecretResponse { msg?: string; data: { secret: string; }; } export interface Webhook { id?: string; createdBy?: string; description?: string; eventList?: string[]; secret?: string; updatedBy?: string; url?: string; active?: boolean; deletedAt?: Date; } export declare class Webhooks extends ThBaseHandler { static baseEndpoint: string; endpoint: string; http: Client; options: WebhooksOptions; uriHelper: UriHelper; constructor(options: WebhooksOptions, http: Client); getAll(query?: WebhookQuery | undefined): Promise; get(webhookId: string): Promise; create(webhook: Webhook): Promise; put(webhookId: string, webhook: Webhook): Promise; delete(webhookId: string): Promise; regenerateSecret(webhookId: string): Promise; }