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 PlansClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * Plans is the former public name for Variants. Existing integrations can keep calling these deprecated endpoints while they migrate; every response points to the matching Variants endpoint. * * Use the Variants API for all new integrations. Variant IDs retain their existing `plan_` prefix, and the underlying resource is unchanged. */ export declare class PlansClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: PlansClient.Options); /** * @deprecated * * Deprecated compatibility endpoint. List variants with `GET /variants` instead. * * @param {Whop.ListPlansRequest} request * @param {PlansClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.plans.list() */ list(request?: Whop.ListPlansRequest, requestOptions?: PlansClient.RequestOptions): Promise>; /** * @deprecated * * Deprecated compatibility endpoint. Create variants with `POST /variants` instead. * * @param {Whop.CreatePlansRequest} request * @param {PlansClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.plans.create() */ create(request?: Whop.CreatePlansRequest, requestOptions?: PlansClient.RequestOptions): core.HttpResponsePromise; private __create; /** * @deprecated * * Deprecated compatibility endpoint. Retrieve variants with `GET /variants/{id}` instead. * * @param {Whop.RetrievePlansRequest} request * @param {PlansClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.plans.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrievePlansRequest, requestOptions?: PlansClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * @deprecated * * Deprecated compatibility endpoint. Delete variants with `DELETE /variants/{id}` instead. * * @param {Whop.DeletePlansRequest} request * @param {PlansClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.plans.delete({ * id: "id" * }) */ delete(request: Whop.DeletePlansRequest, requestOptions?: PlansClient.RequestOptions): core.HttpResponsePromise; private __delete; /** * @deprecated * * Deprecated compatibility endpoint. Update variants with `PATCH /variants/{id}` instead. * * @param {Whop.UpdatePlansRequest} request * @param {PlansClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.plans.update({ * id: "id" * }) */ update(request: Whop.UpdatePlansRequest, requestOptions?: PlansClient.RequestOptions): core.HttpResponsePromise; private __update; /** * @deprecated * * Deprecated compatibility endpoint. Quote tax with `POST /payment_quotes` instead. * * @param {Whop.CalculateTaxPlansRequest} request * @param {PlansClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.plans.calculateTax({ * id: "id" * }) */ calculateTax(request: Whop.CalculateTaxPlansRequest, requestOptions?: PlansClient.RequestOptions): core.HttpResponsePromise; private __calculateTax; }