import { Subject } from "rxjs"; import { IFSConfig, IFSHttpResponse, IFSLogin, IFSUser } from "../models"; import { FSHttpHelpService } from "./finserve-lib-http-helper.service"; import { FSMessageService } from "./finserve-lib-message.service"; import { FSUtilityService } from "./finserve-lib-utility.service"; import * as i0 from "@angular/core"; export declare class FSAuthService { private _httpContext; private _utilityContext; private _messageContext; private _fsConfig; private _customerDetails; protected _user: IFSUser; protected _user$: Subject; protected _token$: Subject<{ token: string; message: string; }>; get user(): IFSUser; set user(user: IFSUser); get user$(): Subject; get token$(): Subject<{ token: string; message: string; }>; constructor(_httpContext: FSHttpHelpService, _utilityContext: FSUtilityService, _messageContext: FSMessageService, _fsConfig: IFSConfig); /** * @description Login with provided input * @description If success then redirect to the provided MFE url or else redirect to host url * @param input IFSLogin */ login(input: IFSLogin): import("rxjs").Observable; /** * @description Load login user basic details * @param userCode Can be passed or else from token can be fetched inside server * @returns IFSUser */ loadUser(userCode?: string): import("rxjs").Observable; /** * @description Remove server session as well as browser session based on session key * @description If fake testing is true which means logout will works exactly same as live with dummy data * @param endPoint string * @returns Observable */ logout(fakeTesting?: boolean): import("rxjs").Observable; changePassword(password: string, staffID?: string): import("rxjs").Observable; validateOTP(otp: string, staffID: string): import("rxjs").Observable; /** * @description If session key present in the query string then set it to local storage * @description Otherwise redirect to login page */ observeSession(): void; redirect2Login(): void; private _destroyBrowserSession; private _fakeLogout; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }