import * as i0 from '@angular/core'; import { Signal } from '@angular/core'; import * as i1 from '@angular/router'; import { Router, Event, NavigationEnd, ActivatedRouteSnapshot, Routes } from '@angular/router'; import { Observable, OperatorFunction } from 'rxjs'; import { Context } from '@luigi-project/client'; declare class LuigiPreloadComponent { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LuigiMockModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare enum ILuigiContextTypes { INIT = 0, UPDATE = 1 } interface IContextMessage { context: Context; contextType: ILuigiContextTypes; } declare abstract class LuigiContextService { /** * Get a signal that emits when context is set. */ abstract contextSignal(): Signal; /** * 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 class LuigiAutoRoutingService { private router; private luigiContextService; 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; private isClientInitialized; 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 signalContext; private subject; private currentContext; private ngZone; constructor(); addListener(contextType: ILuigiContextTypes, context: Context): void; /** * Get a signal that emits when context is set. */ contextSignal(): Signal; /** * Get an observable that emits when context is set. */ 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; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { ILuigiContextTypes, LuigiAngularSupportModule, LuigiAutoRoutingService, LuigiContextService, LuigiContextServiceImpl, LuigiMockModule, LuigiPreloadComponent, staticRoutes }; export type { IContextMessage };