import { RequestOptionsFactory } from '@wix/sdk-types'; /** * Changes a member's login email address. * * After running this function, the specified member can log in with the new email address. If the member uses social login (for example, Google login) and the member tries to log in with the old email address, they will be re-registered with the old email address. * * Site collaborators can use `changeLoginEmail()` to change another member's login email. Members who are not site collaborators can use `changeLoginEmail()` to change their own login email only. * * > **Note:** `changeLoginEmail()` cannot be used to change the login email of a site collaborator. Site collaborators can change their login emails from their Wix [account settings](https://manage.wix.com/account/account-settings). */ export declare function changeLoginEmail(payload: object): RequestOptionsFactory; /** * Approves a pending member using an ID, email address or approval token. * * Tokens must be approved within 30 hours of token creation. * Use the `approvalToken` parameter returned from the * [`register()`](#register) function when approving a member by `token`. * * > **Note:** * > A new member's status is `"PENDING"` when the site's membership policy is set to manual approval. * > To learn more about setting your site's membership approval policy, see * > [Editing Your Member Signup Settings](https://support.wix.com/en/article/editing-your-member-signup-settings-for-the-default-form). * * Members are typically associated with a contact, each having a distinct member and contact ID. When passing the ID as a parameter, avoid presuming the IDs are identical since they represent separate entities. */ export declare function approve(payload: object): RequestOptionsFactory; /** * Blocks a member from logging in to the site using an ID or email address. * * To unblock the member and allow them to log in to the site, use the [`approve()`](#approve) function. */ export declare function block(payload: object): RequestOptionsFactory; /** * Registers a new site member. * * The specified `password` must be between 4 and 100 ASCII characters. * * >**Note:** The `register()` function behaves differently depending on your site's [member signup settings](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-members/enabling-custom-site-registration). */ export declare function register(payload: object): RequestOptionsFactory; /** * Logs in a registered member with an email and password. * * The `login()` function only works with existing members. To register a new member use the [`register()`](#register) function. * * To complete the login, the returned session token must be applied using the `applySessionToken()` function in the wix-members-frontend API. */ export declare function login(payload: object): RequestOptionsFactory; /** * Sends a site member an email with a link to set their password. * * The set password link is valid for 3 hours, * and it can be used only once. * If the link expires, the original password remains. */ export declare function sendSetPasswordEmail(payload: object): RequestOptionsFactory;