import { RequestOptionsFactory } from '@wix/sdk-types'; /** Retrieves a list of up to 100 public pricing plans. Public plans are visible plans that are available to site visitors and can be purchased. */ export declare function listPublicPlans(payload: object): RequestOptionsFactory; /** * Creates a query to retrieve a list of public pricing plans. * * * The `queryPublicPlans()` method builds a query to retrieve a list of up to 1,000 public plans and returns a [`PublicPlansQueryBuilder`](#plansquerybuilder) object. * * The returned object contains the query definition which is typically used to run the query using the [`find()`](#plansquerybuilder/find) method. * * You can refine the query by chaining `PublicPlansQueryBuilder` methods onto the query. `PublicPlansQueryBuilder` methods enable you to sort, filter, and control the results that `queryPublicPlans()` returns. * * `queryPublicPlans()` runs with the following `PublicPlansQueryBuilder` defaults that you can override: * - [`skip`](#plansquerybuilder/skip): `0` * - [`limit`](#plansquerybuilder/limit): `50` * * The methods that are chained to `queryPublicPlans()` are applied in the order they are called. For example, if you sort on the `_createdDate` property in ascending order and then on the `_id` property in ascending order, the results are sorted first by the created date of the items and then, if there are multiple results with the same date, the items are sorted by `_id` in ascending order, per created date value. * * The following `PublicPlansQueryBuilder` methods are supported for the `queryPublicPlans()` method. For a full description of the Plans object, see the object returned for the [`items`](#plansqueryresult/items) property in [`PublicPlansQueryResult`](#plansqueryresult). */ export declare function queryPublicPlans(payload: object): RequestOptionsFactory; /** Retrieves a pricing plan by ID. */ export declare function getPlan(payload: object): RequestOptionsFactory; /** Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans). */ export declare function listPlans(payload: object): RequestOptionsFactory; /** Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans. */ export declare function getPlanStats(payload: object): RequestOptionsFactory; /** * Creates a pricing plan. The specified `plan` object must contain a pricing model. A pricing model can be 1 of the following: * - **A subscription**: A subscription with recurring payments and how often the plan occurs. Subscriptions can have free trial days. * - **A plan that doesn't renew**: A single payment for a specific duration that doesn't renew. * - **An unlimited plan**: A single payment for an unlimited amount of time (until canceled). * Pricing plans are available to the Wix user in the Pricing Plans section in a site's dashboard. */ export declare function createPlan(payload: object): RequestOptionsFactory; /** * Updates a pricing plan. * Updating a plan doesn't impact existing orders made for the plan. All orders keep the details of the original plan that was active at the time of purchase. */ export declare function updatePlan(payload: object): RequestOptionsFactory; /** * Sets visibility for pricing plans. Visible plans are considered public plans. * By default, pricing plans are public, meaning they are visible. Plans can be hidden so that site members and visitors can't choose them. * As opposed to archiving, setting visibility can be reversed. This means that a public plan can be hidden, and a hidden plan can be made public (visible). (An archived plan always remains archived and can't be made active again.) * Changing a plan’s visibility doesn't impact existing orders for the plan. All orders for hidden plans are still active and keep their perks. */ export declare function setPlanVisibility(payload: object): RequestOptionsFactory; /** Marks a pricing plan as the primary pricing plan. When viewing pricing plans on a site, the primary plan is highlighted with a customizable ribbon. Only a single plan can be marked as a primary plan at any given time. If there is an existing plan marked as primary, calling Make Plan Primary causes the existing primary plan to lose its primary status. */ export declare function makePlanPrimary(payload: object): RequestOptionsFactory; /** Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon. */ export declare function clearPrimary(payload: object): RequestOptionsFactory; /** * Archives a single plan. * When a plan is archived, it's no longer visible as a public plan that can be chosen by site members or visitors. * This is because the plan's `public` property is automatically set to `false`. * Archived plans can't be purchased or reactivated. * Plan archiving doesn't impact existing orders made for the plan. All orders for the plan are still active and keep their perks, payment options, and terms. * Wix users can see archived plans in a site's dashboard under **Pricing Plans -> Archived Plans**. * > **Note:** An attempt to archive an already-archived plan throws an error. */ export declare function archivePlan(payload: object): RequestOptionsFactory;