import { WebAuth } from 'auth0-js'; import EventEmitter from 'eventemitter3'; import * as types from './types'; type Events = 'error'; export declare class Authenticator extends EventEmitter { private _webAuth; private _config; private _baseUrl; private _identityIsBeingFetched; private _identity; constructor(config: Partial, _webAuth: WebAuth); get webAuth(): WebAuth; private get loginUrl(); private get logoutUrl(); getCurrentlyLoggedInIdentityOrNull(attemptedLicense?: string): Promise; ensureLoggedIn(): Promise; login(returnUrl?: string): void; logout(returnUrl?: string): Promise; /** * Verify callback from login provider * @returns The identityId and token * @throws {{ error: string, errorDescription: string, state?: string }} If the user is not logged in */ callback(): Promise<{ license: string | undefined; identity: { id: string | undefined; } | undefined; token: import("auth0-js").Auth0DecodedHash; }>; getIdToken(): Promise; redirectToLogin(): void; redirectToLogout(): void; private _getIdentityOrNullIfCookieRequired; private _setLegacyCookieIfPossible; private _getIdentityApiTokenOrNulIfAuthRequired; changeActiveLicense(license: string): Promise; private _changePassportMap; private _removeIdentity; private _removeAuth0TemporaryCookies; private _getLicenseFromWebTokenData; } export {};