import * as i0 from '@angular/core'; import { OnInit, OnDestroy, NgZone } from '@angular/core'; import * as i1 from '@angular/router'; import { Router, RouterEvent, NavigationEnd, ActivatedRouteSnapshot, Routes } from '@angular/router'; import { Context } from '@luigi-project/client'; import { Observable, OperatorFunction } from 'rxjs'; declare class LuigiPreloadComponent implements OnInit { constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare abstract class LuigiContextService { /** * Listen to context changes * Receives current value, even if the event was already dispatched earlier. */ abstract contextObservable(): Observable; /** * Get latest set context object */ abstract getContext(): Context; /** * Get a promise that resolves when context is set. */ abstract getContextAsync(): Promise; } declare enum ILuigiContextTypes { INIT = 0, UPDATE = 1 } interface IContextMessage { contextType: ILuigiContextTypes; context: Context; } declare class LuigiAutoRoutingService implements OnDestroy { private router; private luigiContextService; private subscription; constructor(router: Router, luigiContextService: LuigiContextService); doFilter(): OperatorFunction; /** * This method will be take in consideration angular route that having in data object the paramter * fromVirtualTreeRoot: true, here an example: * {path: 'demo', component: DemoComponent, data:{fromVirtualTreeRoot: true}} * Another option is to specify the LuigiPath: if you add in route data luigiRoute:'/xxxx/xxx'; * in the case we will update the path in LuigiCore navigation, here an example * {path: 'demo', component: DemoComponent, data:{luigiRoute: '/home/demo''}} * If updateModalPathParam is specified, than modalPathParam will be updated upon internal navigation: * {path: 'demo', component: DemoComponent, data:{updateModalPathParam: true}} * @param event the NavigationEnd event */ doSubscription(event: NavigationEnd): void; getResolvedLuigiRoute(current: ActivatedRouteSnapshot): string | undefined; getAllParamsFromParents(current: ActivatedRouteSnapshot): { [key: string]: string; } | undefined; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare const staticRoutes: Routes; declare class LuigiAngularSupportModule { constructor(navigation: LuigiAutoRoutingService, context: LuigiContextService); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class LuigiContextServiceImpl implements LuigiContextService { private zone; private subject; private currentContext; constructor(zone: NgZone); contextObservable(): Observable; /** * Get latest context object retrieved from luigi core application or empty object, if not yet set. */ getContext(): Context; /** * Get a promise that resolves when context is set. */ getContextAsync(): Promise; /** * Checks if input is an object. * @param objectToCheck mixed * @returns {boolean} */ private isObject; /** * Set current context */ protected setContext(obj: IContextMessage): void; addListener(contextType: ILuigiContextTypes, context: Context): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class LuigiMockModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { ILuigiContextTypes, LuigiAngularSupportModule, LuigiAutoRoutingService, LuigiContextService, LuigiContextServiceImpl, LuigiMockModule, LuigiPreloadComponent, staticRoutes }; export type { IContextMessage };