1 | import { AfterEachHookCallback, BeforeEachGuardCallback, GuardReturnContext, BeforeResolveGuardCallback, GuardsInitArgs } from "./typings/router-guards-service";
|
2 | import { Route } from "./typings/router-service";
|
3 | export declare class RouterGuardsService {
|
4 | private beforeEach;
|
5 | private beforeResolve;
|
6 | private afterEach;
|
7 | constructor({ to, from }: GuardsInitArgs);
|
8 | addBeforeEach(callback: BeforeEachGuardCallback): void;
|
9 | addBeforeResolve(callback: BeforeResolveGuardCallback): void;
|
10 | addAfterEach(callback: AfterEachHookCallback): void;
|
11 | runBeforeEach(): GuardReturnContext;
|
12 | runBeforeResolve(): GuardReturnContext;
|
13 | runAfterEach(): void;
|
14 | setRoutes(to: Route, from: Route): void;
|
15 | }
|