1 | import { GuardReturnContext, NavigationGuardCallback } from "./typings/router-guards-service";
|
2 | import { Route } from "./typings/router-service";
|
3 | export declare class RouterGuardService {
|
4 | private guardCallbacks;
|
5 | private isCancelled;
|
6 | private lastContext;
|
7 | private routeTo;
|
8 | private routeFrom;
|
9 | private isHook;
|
10 | constructor(to: Route, from: Route, isHook?: boolean);
|
11 | add(callback: NavigationGuardCallback): void;
|
12 | executeCallbacks(arr: any, predicate: any): Promise<boolean>;
|
13 | run(): GuardReturnContext;
|
14 | setRoutes(to: Route, from: Route): void;
|
15 | }
|