import { ActivatedRouteSnapshot, CanActivate, CanActivateChild, CanLoad, Route, Router, RouterStateSnapshot } from '@angular/router'; import { MessageBus } from '@tangential/core'; import { Observable } from 'rxjs'; import { AuthenticationService } from '../state'; import * as i0 from "@angular/core"; /** * Register this class as a Provider in your module before using it on a route. */ export declare class HasRoleGuard implements CanActivate, CanLoad, CanActivateChild { private bus; private router; private authService; constructor(bus: MessageBus, router: Router, authService: AuthenticationService); canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable; canLoad(route: Route): Observable; canActivateChild(childRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable; private requiredRoles; private doCheck; private firstMissingRole; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }