import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Whop from "../../../index.js"; export declare namespace ConfirmationTokensClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * A Confirmation Token is a single-use, short-lived reference to a payment method and billing details collected from a buyer. Its response never returns the underlying payment credential. * * Whop Elements mint the token in your buyer-facing collection flow and hand you its `ctok_` ID to send to the Payments API from your server. Retrieve a token to display its payment method and billing preview or check whether it is still usable. */ export declare class ConfirmationTokensClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: ConfirmationTokensClient.Options); /** * Retrieves a confirmation token's payment method and billing details, never the underlying payment credential, to display what the buyer chose or check that the token is still usable. Requires no authentication and is rate-limited. * * @param {Whop.RetrieveConfirmationTokensRequest} request * @param {ConfirmationTokensClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.confirmationTokens.retrieve({ * id: "id", * account_id: "account_id" * }) */ retrieve(request: Whop.RetrieveConfirmationTokensRequest, requestOptions?: ConfirmationTokensClient.RequestOptions): core.HttpResponsePromise; private __retrieve; }