import { AuthenticationService } from './authentication.service'; import { ApiService, TokenService } from '../../api'; import { EnvironmentService } from '../../services/environment.service'; import { HttpClient } from '@angular/common/http'; import { Router } from '@angular/router'; import { Observable } from 'rxjs'; import { LoginBase } from '../models'; export declare class MockAuthenticationService 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): Observable; /** * This runs once on application startup. * * @param {boolean} [navigation=true] Defines, if you would like to navigate to login. * @returns {Observable} * @memberof UserAuthenticationService */ initialize(navigation?: boolean): void; /** * This function resets the Access token. * * @private * @param {string} token * @returns {Observable} * @memberof UserAuthenticationService */ protected refreshAccessToken(): Observable; private fakeCall; }