import { RequestOptionsFactory } from '@wix/sdk-types'; /** * Retrieves the site's loyalty program. * * The `getLoyaltyProgram()` function returns a Promise that resolves to the site's loyalty program. */ export declare function getLoyaltyProgram(payload: object): RequestOptionsFactory; /** * Retrieves loyalty programs for all metasites that the caller is a member of. * * Must be called with user identity. */ export declare function bulkGetLoyaltyProgram(payload: object): RequestOptionsFactory; /** * Updates the site's loyalty program. * * The `updateLoyaltyProgram()` function returns a Promise that resolves when the loyalty program is updated. * * With the `updateLoyaltyProgram()` function you can update the name of the loyalty program and the details of the collectible points unit. To activate the loyalty program use the [`activateLoyaltyProgram()`](wix-loyalty-v2/programs/activateloyaltyprogram) function. * * >**Note:** Only visitors with **Manage Loyalty** [permissions](https://support.wix.com/en/article/roles-permissions-accessing-roles-permissions) can update a loyalty program. You can override the permissions with the `wix-auth` [`elevate()`](wix-auth/elevate) function. */ export declare function updateLoyaltyProgram(payload: object): RequestOptionsFactory; /** * Activates a loyalty program. * * The `activateLoyaltyProgram()` function returns a Promise that resolves when the status of the loyalty program is successfully changed to `"ACTIVE"`. * * Before you begin, a Wix Loyalty Program must first be installed through your [dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Floyalty-accounts/wizard/) or through the [Wix App Market](https://www.wix.com/app-market/loyalty). Initially when a loyalty program is installed, the status is set to `"DRAFT"`. You can change the program's status to `"ACTIVE"` with this function or through your [dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Floyalty-accounts/wizard/). A site's customers can only earn or redeem points while the program status is `"ACTIVE"`. * * This function updates only the status of a loyalty program, to make other updates to the program, use the [`updateLoyaltyProgram()`](wix-loyalty-v2/programs/updateloyaltyprogram) function. * * To temporarily pause your loyalty program you must follow three steps: * 1. Remove all [`earnPoints()`](wix-loyalty-v2/accounts/earnpoints) functions and switch off all the "Earn Points" and "Rewards" toggles in the [Loyalty Program dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Open%20Loyalty%20Program&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https://www.wix.com/dashboard/{{metaSiteId}}/loyalty-accounts/). * 1. Hide the loyalty page from your site. * 1. Delete the My Rewards page from the Member pages. * See [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information. * * >**Note:** Only visitors with **Manage Loyalty** [permissions](https://support.wix.com/en/article/roles-permissions-accessing-roles-permissions) can activate a loyalty program. You can override the permissions with the `wix-auth` [`elevate()`](wix-auth/elevate) function. */ export declare function activateLoyaltyProgram(payload: object): RequestOptionsFactory; /** Changes the program status to `PAUSED`. */ export declare function pauseLoyaltyProgram(payload: object): RequestOptionsFactory; /** Retrieves information about the available loyalty program premium features. */ export declare function getLoyaltyProgramPremiumFeatures(payload: object): RequestOptionsFactory; /** Updates the `pointsExpiration` status to `ENABLED`. */ export declare function enablePointsExpiration(payload: object): RequestOptionsFactory; /** Updates the `pointsExpiration` status to `DISABLED`. */ export declare function disablePointsExpiration(payload: object): RequestOptionsFactory;