import { Location } from '@angular/common'; import { ActivatedRoute, ActivatedRouteSnapshot, Params, Route, Router } from '@angular/router'; import { Observable } from 'rxjs'; import { DemandeTransmitInterceptor } from '../foehn-page/foehn-transmit-waiting-modal/demande-transmit-interceptor'; import { GesdemHandlerService } from '../gesdem/gesdem-handler.service'; import { GesdemActionRecoveryService } from '../gesdem-action-recovery/gesdem-action-recovery.service'; import { SdkEventsLoggerService } from '../sdk-events-logger/sdk-events-logger.service'; import * as i0 from "@angular/core"; export declare enum NavigationDirection { FORWARD = 1, BACKWARD = -1 } export declare class FoehnNavigationService { private router; private gesdemService; private gesdemActionRecoveryService; private route; private location; private demandeTransmitInterceptor; private eventsLoggerService; currentRouteOrder: number; orderedRoutes: Route[]; private _activatedRoute; private isInit; private initializedAndRouteActivated; private linearRouting; constructor(router: Router, gesdemService: GesdemHandlerService, gesdemActionRecoveryService: GesdemActionRecoveryService, route: ActivatedRoute, location: Location, demandeTransmitInterceptor: DemandeTransmitInterceptor, eventsLoggerService: SdkEventsLoggerService); get initialized(): boolean; set activatedRoute(value: ActivatedRoute); static getRootRouteRecursive(route: ActivatedRouteSnapshot): Route; initRoute(route: Route): void; throwIfNotInit(): void; updateRouteInformations(): void; getFirstRoute(): Route; current(): Promise; hasBeenInitialized(): Observable; getQueryParamsToForwardAsString(): string; getQueryParamsToForward(): Params; next(): Promise; previous(): Promise; last(): Promise; recap(): Promise; redirect(newPath: string): Promise; getAvailableRoutes(): Route[]; getCurrentRouteIndex(): number; getTotalRoutesSize(): number; getLastRouteOrder(): number; getNextAvailableRoute(direction: NavigationDirection): Route; isFirstFormPage(): boolean; isForcedOnRecapForPendingPayment(): boolean; isLastFormPage(): boolean; getNextRouteIndex(): number; getPreviousRouteIndex(): number; isLinearRouting(): boolean; private getCurrentRoute; private redirectToAvailableRoute; private isRouteAvailable; private evaluateGuard; /** * reindexe les routes par "order" * @param applicationRoute as route * @returns Route[] */ private indexRoutesByOrder; private flattenRoutes; private setFocusOnPageTitle; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }