import { Observable, Subject } from 'rxjs'; import { HttpHeaders } from '@angular/common/http'; import { AuthenticationServiceInterface } from '../interfaces/authentication-service.interface'; import { EventEmitter } from 'eventemitter3'; import * as i0 from "@angular/core"; type EventEmitterInstance = InstanceType; export declare class AuthenticationService implements AuthenticationServiceInterface { private readonly injector; private readonly redirectAuthService; onLogin: Subject; onLogout: Subject; onTokenReceived: Subject; constructor(); get on(): EventEmitterInstance['on']; get off(): EventEmitterInstance['off']; get once(): EventEmitterInstance['once']; get emit(): EventEmitterInstance['emit']; get onError(): Observable; addTokenToHeader(requestUrl: string, headersArg?: HttpHeaders): Observable; isECMProvider(): boolean; isBPMProvider(): boolean; isALLProvider(): boolean; private get oidcAuthenticationService(); private get basicAlfrescoAuthService(); getToken(): string; isLoggedIn(): boolean; logout(): Observable; reset(): void; login(username: string, password: string, rememberMe?: boolean): Observable<{ type: string; ticket: any; }>; /** * Gets the username of the authenticated user. * * @returns the username of the authenticated user */ getUsername(): string; getAuthHeaders(requestUrl: string, headers: HttpHeaders): HttpHeaders; isOauth(): boolean; isKerberosEnabled(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export {};