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 ExportsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * An Export is a CSV of one of an account's dashboard tables, such as members, payments, or disputes. Exports are generated in the background, so a new export starts `pending` and becomes `completed` with a download link. * * Use the Exports API to start an export, poll it until `download_url` is set, and list an account's past exports. Each table requires its own export scope, and finished files are deleted after 30 days. */ export declare class ExportsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: ExportsClient.Options); /** * Lists the exports requested for an account, newest first. Only exports of resources the credential is allowed to export are returned. * * @param {Whop.ListExportsRequest} request * @param {ExportsClient.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.exports.list() */ list(request?: Whop.ListExportsRequest, requestOptions?: ExportsClient.RequestOptions): core.HttpResponsePromise; private __list; /** * Starts an asynchronous export of a resource for an account. Returns the export in `pending`; poll `GET /exports/:id` until `download_url` is set. * * @param {Whop.CreateExportsRequest} request * @param {ExportsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.exports.create({ * resource: "ad_campaigns" * }) */ create(request: Whop.CreateExportsRequest, requestOptions?: ExportsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Fetches an export's status and, once complete, its download link. * * @param {Whop.RetrieveExportsRequest} request * @param {ExportsClient.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.exports.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveExportsRequest, requestOptions?: ExportsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; }