import { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http'; import { BehaviorSubject, Observable } from 'rxjs'; import { AuthenticatedStatus, Error, PasswordResetInfo, UserInfoTokenParts } from './interfaces'; import { ReCaptchaV3Service } from './recaptcha_v3.service'; import { ConfigurationService } from './configuration.service'; export declare class AuthenticationService { protected config: ConfigurationService; protected http: HttpClient; protected recaptcha: ReCaptchaV3Service; isAuthenticated: BehaviorSubject; basicCredentials?: string[]; constructor(config: ConfigurationService, http: HttpClient, recaptcha: ReCaptchaV3Service); getUsername(): string | null; protected getUserTokenInfo(): UserInfoTokenParts | null; setBasicCredentials(login: string, password: string, temporary?: boolean): void; cleanBasicCredentials(): void; setAuthToken(token: string): void; getHeaders(recaptcha?: string): HttpHeaders; setAuthenticated(isAuthenticated: boolean): void; protected error(errorResponse: HttpErrorResponse): Observable; login(login: string, password: string, path?: string): Observable; doLogin(login: string, password: string, path?: string, recaptcha?: string): Observable; _logout(): void; logout(): void; doRegister(user: any, recaptcha?: string): Observable; doRequestPasswordReset(login: string, recaptcha?: string): Observable; requestPasswordReset(login: string): Observable; passwordReset(resetInfo: PasswordResetInfo): Observable; goSocialLogin(provider: any, callback: any): void; doGetValidationSchema(token: string, recaptcha?: string): Observable; getValidationSchema(token: string): Observable; doRealValidation(token: string, model: any, recaptcha?: string): Observable; doValidation(token: string, model: any): Observable; doGetInfo(recaptcha?: string): Observable; getInfo(): Observable; } export declare function getError(errorResponse: HttpErrorResponse): Error;