import { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router'; import { Observable } from 'rxjs'; import { AuthenticationService } from '../authentication/authentication.service'; /** * A service used to limit access to a route to administrators */ export declare class AdminAuthGuardService implements CanActivate { private authenticationService; private router; /** * Constructor * @param authenticationService - A reference to the authentication service * @param router - A reference to the router */ constructor(authenticationService: AuthenticationService, router: Router); /** * Determine whether a route can be activated * @param route - The activated route snapshot * @param state - The router state snapshot * @returns An observable boolean or a promise of a boolean */ canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable | Promise | boolean; }