import { Router, CanActivate, CanActivateChild, ActivatedRouteSnapshot, RouterStateSnapshot } from "@angular/router"; import { Observable } from "rxjs"; import { W3AuthAbstractService } from "../auth-abstract.service"; /** * Guard, checks access token availability and allows or disallows access to page, * and redirects out * * @example * { path: 'test', component: TestComponent, canActivate: [ W3ProtectedGuard ] } * * @export */ export declare class W3ProtectedGuard implements CanActivate, CanActivateChild { private authService; private publicFallbackPageUri; private router; constructor(authService: W3AuthAbstractService, publicFallbackPageUri: string, router: Router); /** * CanActivate handler */ canActivate(_route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable; /** * CanActivateChild handler */ canActivateChild(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable; /** * Check, if current page is public fallback page */ private isPublicPage; /** * Navigate away from the app / path */ private navigate; }