import { Type, NgModuleFactory } from '@angular/core'; import { Params } from './route-params.service'; export declare type Load = () => Promise | Type | any>; export interface Route { path: string; load?: Load; matcher?: RegExp; options: RouteOptions; } export interface RouteOptions { exact?: boolean; } export interface ActiveRoute { route: Route; params: Params; path: string; } export interface ModuleWithRoute { routeComponent: Type; }