import { Observable } from 'rxjs'; import { UserIdentity, AccessToken } from '../../misc/types'; /** * Options for authentication service */ export declare abstract class AuthenticationServiceOptions { /** * Method logs user into system * @param accessToken - Access token holding authentication information */ abstract login(accessToken: AccessToken): Observable; /** * Gets indication whether current state of app is displaying auth page or provided path is checked * @param path - Path to be tested whether is auth page, if not set, current page is checked */ abstract isAuthPage(path?: string): boolean; /** * Methods logs out user out of system */ abstract logout(): Observable; /** * Gets information about user */ abstract getUserIdentity(): Observable>; /** * Redirects current page to authentication page */ abstract showAuthPage(): Promise; /** * Redirects current page to access denied page */ abstract showAccessDenied(): Promise; } //# sourceMappingURL=authenticationServiceOptions.interface.d.ts.map