import { Authentication } from '../interfaces/authentication.interface'; import { ReplaySubject, Subject } from 'rxjs'; import * as i0 from "@angular/core"; export declare class ProcessAuth { private readonly appConfigService; private readonly adfHttpClient; private readonly storageService; onLogin: ReplaySubject; onLogout: ReplaySubject; onError: Subject; ticket: string; config: { ticketBpm: any; }; authentications: Authentication; get basePath(): string; constructor(); private setConfig; saveUsername(username: string): void; getUsername(): string; /** * login Activiti API * * @param username Username to login * @param password Password to login * @returns A promise that returns {new authentication ticket} if resolved and {error} if rejected. */ login(username: string, password: string): Promise; /** * logout Alfresco API * * @returns A promise that returns {new authentication ticket} if resolved and {error} if rejected. */ logout(): Promise; basicAuth(username: string, password: string): string; /** * Set the current Ticket * * @param ticket a string representing the ticket */ setTicket(ticket: string): void; invalidateSession(): void; /** * @returns the current Ticket */ getToken(): string; /** * @returns If the client is logged in return true */ isLoggedIn(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }