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 CardTransactionsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class CardTransactionsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: CardTransactionsClient.Options); /** * Lists the card transactions of an account or a user, newest first. Covers every card the owner has ever had, including canceled cards and spend that predates a re-application, and team members only see transactions on the cards assigned to them. Pass `transaction_ids` to fetch specific transactions instead of paging for them. * * @param {Whop.ListCardTransactionsRequest} request * @param {CardTransactionsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.cardTransactions.list({ * transaction_ids: ["citx_xxxxxxxxxxxxxx"], * card_id: ["icrd_xxxxxxxxxxxxxx"], * cardholder_id: ["user_xxxxxxxxxxxxxx"] * }) */ list(request?: Whop.ListCardTransactionsRequest, requestOptions?: CardTransactionsClient.RequestOptions): Promise>; /** * Retrieves a single card transaction from any card the owner has ever had, including canceled cards. Team members can retrieve only transactions on the cards assigned to them. * * @param {Whop.RetrieveCardTransactionsRequest} request * @param {CardTransactionsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.cardTransactions.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveCardTransactionsRequest, requestOptions?: CardTransactionsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; }