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 CompanyTokenTransactionsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class CompanyTokenTransactionsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: CompanyTokenTransactionsClient.Options); /** * Lists an account's token transactions, newest first. * * Required permissions: * - `company_token_transaction:read` * - `member:basic:read` * - `company:basic:read` * * @param {Whop.ListCompanyTokenTransactionsRequest} request * @param {CompanyTokenTransactionsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.companyTokenTransactions.list({ * first: 42, * last: 42, * user_id: "user_xxxxxxxxxxxxx", * account_id: "biz_xxxxxxxxxxxxxx" * }) */ list(request: Whop.ListCompanyTokenTransactionsRequest, requestOptions?: CompanyTokenTransactionsClient.RequestOptions): Promise>; /** * Creates a token transaction that adds, subtracts, or transfers tokens for a member of an account. * * Required permissions: * - `company_token_transaction:create` * - `member:basic:read` * - `company:basic:read` * * @param {Whop.CreateCompanyTokenTransactionsRequest} request * @param {CompanyTokenTransactionsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.companyTokenTransactions.create({ * transaction_type: "transfer", * account_id: "biz_xxxxxxxxxxxxxx", * amount: 6.9, * destination_user_id: "destination_user_id", * user_id: "user_xxxxxxxxxxxxx" * }) */ create(request: Whop.CreateCompanyTokenTransactionsRequest, requestOptions?: CompanyTokenTransactionsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieves a token transaction. * * Required permissions: * - `company_token_transaction:read` * - `member:basic:read` * - `company:basic:read` * * @param {Whop.RetrieveCompanyTokenTransactionsRequest} request * @param {CompanyTokenTransactionsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.companyTokenTransactions.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveCompanyTokenTransactionsRequest, requestOptions?: CompanyTokenTransactionsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; }