import { HttpClient } from '@angular/common/http'; import { ConfigService } from './config.service'; import { StateService } from './state.service'; import { Router } from '@angular/router'; import { Observable } from 'rxjs'; import { CookieService } from 'ngx-cookie-service'; export declare class AuthenticationService { private configService; private stateService; private cookieService; private http; private router; private platformId; private cookiesIndex; constructor(configService: ConfigService, stateService: StateService, cookieService: CookieService, http: HttpClient, router: Router, platformId: any); /** * * Stores the object it receives in cookies * @param session Object */ saveSessionInCookies(session: object): void; /** * Function that receives the cookies field and if it finds it returns it, otherwise it will return false by exception of 'email_verified' * @param item : 'user' | 'email' | 'email_verified' | 'token' | 'refresh_token' | 'token_id' | 'id' | 'cap_uuid' */ getItemFromCookies(item: 'user' | 'email' | 'email_verified' | 'token' | 'refresh_token' | 'token_id' | 'id' | 'cap_uuid'): any; /** * GuardServices */ userIsLogged(): boolean; /** * * Apply in the app.component.ts * * constructor( private authenticationService:AuthenticationService) { * this.run(); * } * * async run() { * this.showMenu = await this.authenticationService.initialLoading(); * } */ initialLoading(): boolean; saveCurrentUserAll(userInformation: any): void; /** * Deprecated * @param user */ saveCurrentUser(user: {}): void; /** * Deprecated */ isUserLoggedIn(): boolean | void; getToken(): string; getExternalID(): any; private getCredentials; getAuth0Token(): Observable; getAuth0UserInfo(token: string): Observable; getUserInfo(token: string): Observable; getUser(id: string, token: string): Observable; refreshToken(refreshToken: string): Observable; createUser(user: any, accessToken?: string): Observable; loginUser(user: any): Observable; /** * Remplazar por signOutAux() */ signOutAux(): void; /** * Remplazar por signOutAux() */ signOut(): void; changePassword(email: any): Observable; updateProfile(user: any, id: string, token: string): Observable; verifyEmail(userId: string, token: string): Observable; createUserDB(user: any, token: string, authId: string, uuid: string): void; searchUserByEmail(email: string, token: string): Observable; getUserFromEndPoint(filter: object): Observable>; getUserFromAPI(id: string): Observable; updateProfileFromAPI(uuid: string, data: object): Observable; ApiToConsult(): boolean; }