import type { PaginationQueryParams, Webhook, WebhookMutable } from "../interfaces.js"; import type { HttpClient } from "../http/HttpClient.js"; import { RequestOptions } from "./utils.js"; /** * Resource for managing webhook registrations. */ export declare class WebhooksResource { private readonly http; constructor(http: HttpClient); /** * List registered webhooks. * * @param query Optional pagination controls (`page`, `per_page`). * @param options Optional request overrides such as alternate auth token or abort signal. * @returns Array of {@link Webhook} registrations. * @throws {APIError} When the API responds with an error status. */ list(query?: PaginationQueryParams, options?: RequestOptions): Promise; /** * Create a webhook subscription. * * @param payload Mutable webhook attributes aligned with the spec. * @param options Optional request overrides such as alternate auth token or abort signal. * @returns The created {@link Webhook}. * @throws {APIError} When the API responds with an error status. */ create(payload: WebhookMutable, options?: RequestOptions): Promise; /** * Retrieve a webhook by identifier. * * @param webhookId Identifier of the webhook to fetch. * @param options Optional request overrides such as alternate auth token or abort signal. * @returns The requested {@link Webhook}. * @throws {APIError} When the API responds with an error status. */ retrieve(webhookId: string, options?: RequestOptions): Promise; /** * Update a webhook registration. * * @param webhookId Identifier of the webhook to update. * @param payload Mutable webhook attributes aligned with the spec. * @param options Optional request overrides such as alternate auth token or abort signal. * @returns The updated {@link Webhook}. * @throws {APIError} When the API responds with an error status. */ update(webhookId: string, payload: WebhookMutable, options?: RequestOptions): Promise; /** * Delete a webhook registration. * * @param webhookId Identifier of the webhook to delete. * @param options Optional request overrides such as alternate auth token or abort signal. * @returns Resolves to void when deletion succeeds. * @throws {APIError} When the API responds with an error status. */ delete(webhookId: string, options?: RequestOptions): Promise; } //# sourceMappingURL=Webhooks.d.ts.map