UNPKG

636 BTypeScriptView Raw
1import { ActivatedRouteSnapshot, CanActivate, CanActivateChild } from '@angular/router';
2import { NacoService } from '../domains/services/naco.service';
3import { Observable } from 'rxjs';
4import { Storage } from '@ubud/storage';
5import { Location } from '@angular/common';
6export declare class AuthenticatedGuard implements CanActivate, CanActivateChild {
7 private naco;
8 private storage;
9 private location;
10 constructor(naco: NacoService, storage: Storage, location: Location);
11 canActivate(route: ActivatedRouteSnapshot): Observable<boolean>;
12 canActivateChild(route: ActivatedRouteSnapshot): Observable<boolean>;
13}