import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from "@angular/router"; import { PermissionService } from "../services/permission.service"; import * as i0 from "@angular/core"; /** * @inheritDoc * Router guard to check that the user has at least one role required to navigate */ export declare class RoleGuard implements CanActivate { private permissionService; private router; constructor(permissionService: PermissionService, router: Router); /** * Checks `roles` field in activated route data to see if user has at least one of the provided roles * @inheritDoc */ canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean; /** * Checks `roles` field in activated route data to see if user has at least one of the provided roles * @inheritDoc */ canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }