import { Observable } from 'rxjs'; import { HttpClient } from '@angular/common/http'; import { HashService } from './hash.service'; import * as i0 from "@angular/core"; export declare class AuthenticationService { private environment; private httpClient; private hashService; /** This observable allows to verify if the user is authenticated */ private isLoginSubject; constructor(environment: any, httpClient: HttpClient, hashService: HashService); /** * It allows to login with the app with username and password * @param user It */ login(user: any): Observable; getUserByLogin(user: any): Observable; /** It returns the session info */ getTokenByLogin(login: string): Observable; /** * It allows to logout */ logout(redirectURL?: string): void; /** * It allows to assign a new value to the token * @param token */ setToken(token_request: string): void; /** it verifies if there is token */ verifyToken(): void; /** * It allows to remove the token */ private removeTokens; /** * It has a observable to notify if the user is authenticated */ isAuthenticated(): Observable; private getHash; getLink(patCodigo: string): Promise; getLinkMono(promCodigo: string): Promise; getLinkOld(patCodigo: string): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }