import { Store } from "@ngrx/store"; import { Observable, Subject } from "rxjs"; import { StarkLoggingService } from "@nationalbankbelgium/stark-core"; import { StarkProgressIndicatorService } from "./progress-indicator.service.intf"; import { StarkProgressIndicatorFullConfig, StarkProgressIndicatorType } from "../entities"; import { StarkUIApplicationState } from "@nationalbankbelgium/stark-ui/src/common"; import * as i0 from "@angular/core"; /** * @ignore */ export declare class StarkProgressIndicatorServiceImpl implements StarkProgressIndicatorService { logger: StarkLoggingService; store: Store; protected progressIndicatorMap$: Observable>; protected progressIndicatorMap: Map; /** * Map containing a subject per topic */ topicsShowMap$: Map>; /** * Class constructor * Subscription is made to the progressIndicatorMap, containing the configuration for the progressIndicator * @param logger - The `StarkLoggingService` instance of the application. * @param store - The store of the application */ constructor(logger: StarkLoggingService, store: Store); /** * Dispatches the REGISTER action in case the topic does not exist yet in the Store (starkProgressIndicator), otherwise * a REFRESH_CONFIG action is dispatched to increase the listenersCount by 1 */ register(topic: string, type: StarkProgressIndicatorType): void; /** * Dispatches the DEREGISTER action in case the topic exists in the Store (starkProgressIndicator) and its listenersCount is 1, otherwise * a REFRESH_CONFIG action is dispatched to decrease the listenersCount by 1 */ deregister(topic: string): void; /** * Dispatches the SHOW action in case the indicator is not shown yet, otherwise a REFRESH_CONFIG action is dispatched * to increase the pendingListenersCount by 1 */ show(topic: string): void; /** * Dispatches the HIDE action in case the indicator has no pending listeners (only 1), otherwise a REFRESH_CONFIG action is dispatched * to decrease the pendingListenersCount by 1 */ hide(topic: string): void; isVisible(topic: string): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }