import { Observable } from 'rxjs'; import { SpinnerServiceInterface } from './spinner-service.interface'; import * as i0 from "@angular/core"; export declare class SpinnerService implements SpinnerServiceInterface { /** * Application environment variable from the root application */ private appEnv; /** * Observable subject of spinner service */ private spinnerSubject; /** * Spinner is visible or not */ private spinnerIsVisible; /** * Starter value of spinner service */ private starter; constructor(); /** * You can subscribe to the spinner service observable subject to react the spinner's change. */ watch(): Observable; /** * Spinner can be on or off. This function do all things to change the spinner's state. * * @param state `on` or `off` * @param starter any unique random string to avoid multiple spinners show */ private setStatus; /** * Set values of spinner & emit observers. * * @param isVisible boolean * @param starter string */ private setValues; /** * Switch on the spinner. * * @param starter string - any random, unique string could be good */ on(starter: string): boolean; /** * Switch off the spinner. * * @param starter string - same string what you used on `on()` function. */ off(starter: string): boolean; /** * You can get the current state of the spinner. */ getStatus(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } //# sourceMappingURL=spinner.service.d.ts.map