import { Router } from '@angular/router'; import { Observable } from 'rxjs'; import { ApiService, TokenService } from '../../api'; import { EnvironmentService } from '../../services/environment.service'; import { HttpClient } from '@angular/common/http'; import { AuthenticationService } from './authentication.service'; import { AuthenticationUserResponse } from '../interfaces/authentication-user.response'; import { LoginBase } from '../models'; /** * This service handles the authentication methods. * * @export * @class UserAuthenticationService */ export declare class JwtAuthenticationService extends AuthenticationService { readonly environmentService: EnvironmentService; readonly tokenService: TokenService; readonly apiService: ApiService; readonly router: Router; readonly http: HttpClient; constructor(environmentService: EnvironmentService, tokenService: TokenService, apiService: ApiService, router: Router, http: HttpClient); /** * This function registrate one user to the API. * * @param {{ * firstName: string; * lastName: string; * email: string; * password: string; * passwordConfirmation: string; * }} user * @returns {Observable} * @memberof UserAuthenticationService */ registrateUser(user: { firstName: string; lastName: string; email: string; password: string; passwordConfirmation: string; }): Observable; /** * This function gains the Tokens from the JWT api. * * @param {LoginData} loginData * @returns {Observable} * @memberof UserAuthenticationService */ obtainAccessToken(loginData: LoginBase, navigate?: boolean, params?: {}): Observable; /** * This function resets the Access token. * * @private * @param {string} token * @returns {Observable} * @memberof UserAuthenticationService */ protected refreshAccessToken(): Observable; private tokenResponseHandler; }