import { OnDestroy } from '@angular/core'; import { Router } from '@angular/router'; import { HttpClient } from '@angular/common/http'; import { BehaviorSubject, Observable } from 'rxjs'; import { SocialUser, SocialAuthService } from '@abacritt/angularx-social-login'; import { ExternalProvider, Login, VerificationTokenRequest, AuthResult, UserBase } from '../entities/security-entities'; import { ConfigServiceBase } from './config.service.base'; import { ApiSecurityService } from './api.service.security'; import { InitCompanyAuthDialogDetails } from '../entities/init-company-auth-dialog-details'; import * as i0 from "@angular/core"; export declare class AuthServiceBase implements OnDestroy { protected router: Router; protected http: HttpClient; protected externalAuthService: SocialAuthService; protected apiService: ApiSecurityService; protected config: ConfigServiceBase; protected platformId: Object; private readonly apiUrl; private timer?; protected _currentUserPermissionCodes: BehaviorSubject; currentUserPermissionCodes$: Observable; protected _user: BehaviorSubject; user$: Observable; private authChangeSub; private extAuthChangeSub; authChanged: Observable; extAuthChanged: Observable; constructor(router: Router, http: HttpClient, externalAuthService: SocialAuthService, apiService: ApiSecurityService, config: ConfigServiceBase, platformId: Object); private storageEventListener; sendLoginVerificationEmail(body: Login): Observable; login(body: VerificationTokenRequest): Observable>; loginExternal(body: ExternalProvider): Observable>; onAfterLoginExternal: () => void; handleLoginResult(loginResultObservable: Observable): Observable>; logout(): void; onAfterLogout: () => void; refreshToken(): Observable; onAfterRefreshToken: () => void; setLocalStorage(loginResult: AuthResult): void; clearLocalStorage(): void; getBrowserId(): string; isAccessTokenExpired(): boolean; getTokenRemainingTime(): number; getAccessToken(): string; private startTokenTimer; private stopTokenTimer; navigateToDashboard(): void; initCompanyAuthDialogDetails: () => Observable; setCurrentUserPermissionCodes(): Observable; ngOnDestroy(): void; onAfterNgOnDestroy: () => void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }