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 RefundsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * A Refund is one full or partial reversal of a payment, issued with [Refund Payment](/api-reference/beta/payments/refund-payment). It records how much moved, through which provider, and whether it succeeded. * * Use the Refunds API to list the refunds on a payment or across an account, and to retrieve a single refund. */ export declare class RefundsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: RefundsClient.Options); /** * Lists refunds the caller can read, newest first. Filter by payment, account, or buyer to narrow the results. * * @param {Whop.ListRefundsRequest} request * @param {RefundsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.refunds.list() */ list(request?: Whop.ListRefundsRequest, requestOptions?: RefundsClient.RequestOptions): Promise>; /** * Returns one refund. * * @param {Whop.RetrieveRefundsRequest} request * @param {RefundsClient.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.refunds.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveRefundsRequest, requestOptions?: RefundsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; }