import RequestService from '../helpers/request/request-service'; import type { RequestSuccessResponse, RequestErrorResponse } from '../helpers/request/request-service.types'; import * as WebhooksV3ApiSpecs from '../generated/webhooks-v3'; export * as WebhooksV3ApiSpecs from '../generated/webhooks-v3'; export declare class WebhooksV3Api { private readonly request; constructor(request: RequestService); getWebhooks(query?: WebhooksV3ApiSpecs.GetWebhooksData['query']): Promise; meta?: { pagination?: WebhooksV3ApiSpecs.Pagination; }; }>> | RequestErrorResponse<401, Required>>; createWebhooks(requestBody: WebhooksV3ApiSpecs.CreateWebhooksData['body']): Promise> | RequestSuccessResponse<200, Required<{ data?: WebhooksV3ApiSpecs.WebhookFull; meta?: unknown; }>> | RequestErrorResponse<400, Required> | RequestErrorResponse<422, Required>>; getWebhook(webhookId: WebhooksV3ApiSpecs.GetWebhookData['path']['webhook_id']): Promise> | RequestSuccessResponse<200, Required<{ data?: { id?: number; client_id?: string; store_hash?: string; scope?: string; destination?: string; headers?: { [key: string]: string; } | null; is_active?: boolean; created_at?: number; updated_at?: number; }; meta?: unknown; }>> | RequestErrorResponse<404, Required>>; updateWebhook(webhookId: WebhooksV3ApiSpecs.UpdateWebhookData['path']['webhook_id'], requestBody: WebhooksV3ApiSpecs.UpdateWebhookData['body']): Promise | RequestSuccessResponse<200, Required<{ data?: { id?: number; client_id?: string; store_hash?: string; scope?: string; destination?: string; headers?: { [key: string]: string; } | null; is_active?: boolean; created_at?: number; updated_at?: number; }; meta?: unknown; }>>>; deleteWebhook(webhookId: WebhooksV3ApiSpecs.DeleteWebhookData['path']['webhook_id']): Promise | RequestSuccessResponse<200, Required<{ data?: { id?: number; client_id?: string; store_hash?: string; scope?: string; destination?: string; headers?: { [key: string]: string; } | null; is_active?: boolean; created_at?: number; updated_at?: number; }; meta?: unknown; }>>>; getHooksAdmin(query?: WebhooksV3ApiSpecs.GetHooksAdminData['query']): Promise> | RequestSuccessResponse<200, Required<{ data?: { emails?: Array; hooks_list?: Array<{ id?: number; client_id?: string; store_hash?: string; scope?: string; destination?: string; headers?: { [key: string]: string; } | null; is_active?: boolean; created_at?: number; updated_at?: number; status?: "inactive" | "active" | "deactivated"; }>; blocked_domains?: Array<{ destination?: string; time_left?: number; reasons?: Array<{ failure_description?: string; count?: number; timestamp?: number; }>; }>; }; meta?: { pagination?: WebhooksV3ApiSpecs.Pagination; }; }>>>; updateHooksAdmin(requestBody: WebhooksV3ApiSpecs.UpdateHooksAdminData['body']): Promise | RequestErrorResponse<401, Required> | RequestErrorResponse<400, Required> | RequestErrorResponse<422, Required>>; }