import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs"; import * as core from "../../../../core/index.mjs"; import * as Whop from "../../../index.mjs"; export declare namespace DepositsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * Deposits describe the ways to add funds to an account or user balance: a hosted deposit page, bank transfer instructions, and crypto wallet addresses. * * Use the Deposits API to get deposit instructions for an account or user, such as a crypto address to send funds to or bank details for a transfer. */ export declare class DepositsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: DepositsClient.Options); /** * Returns the deposit methods for an account or user, including crypto addresses, bank transfer instructions, and, for a business, a hosted deposit page. Bitcoin deposits are converted to USDT on Plasma in the destination's wallet. Business destinations require no authentication. Pass `payment_method_id` to also charge a business's saved payment method for `amount` in USD and add it to the business's balance; that requires authentication with the `payment:charge` scope. The charge has no fees or taxes and does not count as revenue. * * @param {Whop.CreateDepositsRequest} request * @param {DepositsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.deposits.create({ * destination: "biz_xxxxxxxxxxxxxx" * }) */ create(request: Whop.CreateDepositsRequest, requestOptions?: DepositsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Sends a bank deposit back to the bank account that wired it and takes it back out of the balance. Identify the deposit by its `vbt_` ID, the `source.id` of its row in the account's financial activity. The available balance has to cover the deposit minus the deposit fee, which is refunded. Returns the reversal's own row in the financial activity: a `topup_reversal` debit for the full deposit amount, whose `source` is the bank deposit. The source's `status` is `reversal_in_progress` until the money is back with the sender, then `reversed`. * * @param {Whop.ReverseDepositsRequest} request * @param {DepositsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.deposits.reverse({ * id: "vbt_xxxxxxxxxxxxxx" * }) */ reverse(request: Whop.ReverseDepositsRequest, requestOptions?: DepositsClient.RequestOptions): core.HttpResponsePromise; private __reverse; }