import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as BasisTheory from "../../../index.js"; import { Events } from "../resources/events/client/Client.js"; export declare namespace Webhooks { interface Options extends BaseClientOptions { } interface RequestOptions extends BaseRequestOptions { } } export declare class Webhooks { protected readonly _options: Webhooks.Options; protected _events: Events | undefined; constructor(_options?: Webhooks.Options); get events(): Events; /** * Simple endpoint that can be utilized to verify the application is running * * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.webhooks.ping() */ ping(requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise; private __ping; /** * Returns the webhook * * @param {string} id * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link BasisTheory.UnauthorizedError} * @throws {@link BasisTheory.ForbiddenError} * @throws {@link BasisTheory.NotFoundError} * * @example * await client.webhooks.get("id") */ get(id: string, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise; private __get; /** * Update a new webhook * * @param {string} id * @param {BasisTheory.UpdateWebhookRequest} request * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link BasisTheory.BadRequestError} * @throws {@link BasisTheory.UnauthorizedError} * @throws {@link BasisTheory.ForbiddenError} * @throws {@link BasisTheory.NotFoundError} * * @example * await client.webhooks.update("id", { * name: "webhook-update", * url: "http://www.example.com", * events: ["token:created"] * }) */ update(id: string, request: BasisTheory.UpdateWebhookRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise; private __update; /** * Delete a new webhook * * @param {string} id * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link BasisTheory.BadRequestError} * @throws {@link BasisTheory.UnauthorizedError} * @throws {@link BasisTheory.ForbiddenError} * @throws {@link BasisTheory.NotFoundError} * * @example * await client.webhooks.delete("id") */ delete(id: string, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise; private __delete; /** * Returns the configured webhooks * * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link BasisTheory.BadRequestError} * @throws {@link BasisTheory.UnauthorizedError} * @throws {@link BasisTheory.ForbiddenError} * * @example * await client.webhooks.list() */ list(requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise; private __list; /** * Create a new webhook * * @param {BasisTheory.CreateWebhookRequest} request * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link BasisTheory.BadRequestError} * @throws {@link BasisTheory.UnauthorizedError} * @throws {@link BasisTheory.ForbiddenError} * @throws {@link BasisTheory.UnprocessableEntityError} * * @example * await client.webhooks.create({ * name: "webhook-create", * url: "http://www.example.com", * events: ["token:created"] * }) */ create(request: BasisTheory.CreateWebhookRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise; private __create; protected _getCustomAuthorizationHeaders(): Promise>; }