import { Observable } from "rxjs"; import { StarkSessionService } from "@nationalbankbelgium/stark-core"; import { MatLegacyDialog as MatDialog } from "@angular/material/legacy-dialog"; import { Actions, CreateEffectMetadata, EffectNotification, OnRunEffects } from "@ngrx/effects"; import { StarkSessionUiConfig } from "../entities"; import * as i0 from "@angular/core"; /** * Effects definition to show a warning dialog when the Timeout countdown starts * (the user activity tracking is paused until the user closes the dialog). */ export declare class StarkSessionTimeoutWarningDialogEffects implements OnRunEffects { actions$: Actions; sessionService: StarkSessionService; dialogService: MatDialog; starkSessionUiConfig?: StarkSessionUiConfig | undefined; /** * Class constructor * @param actions$ - The action to perform. * @param sessionService - The `StarkSessionService` instance of the application. * @param dialogService - The `MatDialog` instance of the application. * @param starkSessionUiConfig - The `StarkSessionUiConfig` instance of the application (if provided). */ constructor(actions$: Actions, sessionService: StarkSessionService, dialogService: MatDialog, starkSessionUiConfig?: StarkSessionUiConfig | undefined); /** * This method is used to display a warning session timeout dialog. * When the dialog is closed, if the "keep-logged" string is received as a result, it means that the user should stay logged * and the user activity tracking should be resumed. * * `dispatch: false` => because this effect does not dispatch an action */ starkSessionTimeoutWarning$: Observable & CreateEffectMetadata; /** * This method is used to close the dialog if the session timeout countdown has finished * * `dispatch: false` => because this effect does not dispatch an action */ starkSessionTimeoutWarningClose$: Observable & CreateEffectMetadata; /** * This method will be triggered before the session is open to determine if we should use the session timeout warning effect or not. * * See {@link https://github.com/ngrx/platform/blob/7.4.0/docs/effects/api.md#onruneffects|NGRX OnRunEffects}. * * @param resolvedEffects$ - The effects stream to be executed */ ngrxOnRunEffects(resolvedEffects$: Observable): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }