import ParseUser from './ParseUser'; import type { RequestOptions } from './RESTController'; /** * Provides utility functions for working with Anonymously logged-in users.
* Anonymous users have some unique characteristics: * * * @class Parse.AnonymousUtils * @static */ declare const AnonymousUtils: { /** * Gets whether the user has their account linked to anonymous user. * * @function isLinked * @name Parse.AnonymousUtils.isLinked * @param {Parse.User} user User to check for. * The user must be logged in on this device. * @returns {boolean} true if the user has their account * linked to an anonymous user. * @static */ isLinked(user: ParseUser): boolean; /** * Logs in a user Anonymously. * * @function logIn * @name Parse.AnonymousUtils.logIn * @param {object} options MasterKey / SessionToken. * @returns {Promise} Logged in user * @static */ logIn(options?: RequestOptions): Promise; /** * Links Anonymous User to an existing PFUser. * * @function link * @name Parse.AnonymousUtils.link * @param {Parse.User} user User to link. This must be the current user. * @param {object} options MasterKey / SessionToken. * @returns {Promise} Linked with User * @static */ link(user: ParseUser, options?: RequestOptions): Promise; /** * Returns true if Authentication Provider has been registered for use. * * @function isRegistered * @name Parse.AnonymousUtils.isRegistered * @returns {boolean} * @static */ isRegistered(): boolean; _getAuthProvider(): { restoreAuthentication(): boolean; getAuthType(): string; getAuthData(): { authData: { id: string; }; }; }; }; export default AnonymousUtils;