import * as _angular_core from '@angular/core'; import { OnInit, OnDestroy } from '@angular/core'; import { HttpInterceptorFn } from '@angular/common/http'; /** * A spinner components that shows a 'loading' image in the view. */ declare class TbxSpinnerComponent implements OnInit, OnDestroy { /** A data-bound input property for the spinner name. */ readonly name: _angular_core.InputSignal; /** A data-bound input property for the group name. */ readonly group: _angular_core.InputSignal; /** A data-bound input property for the 'loading' image to load. */ readonly loadingImage: _angular_core.InputSignal; /** Sets an event-bound output property for the spinner name. */ readonly showChange: _angular_core.OutputEmitterRef; /** The class to apply to the spinner (defaults to 'tbx-spinner'). */ readonly class: _angular_core.InputSignal; /** A data-bound input property to indicate if the image is showing. */ readonly show: _angular_core.ModelSignal; /** Indicates if the spinner is showing. */ protected isShowing: _angular_core.Signal; protected showEffect: _angular_core.EffectRef; private readonly spinnerService; protected get spinnerClass(): string; ngOnInit(): void; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * A spinner components that shows a 'loading' image in the view when busy. If * you want to hide the content while loading, place the content inside the * element. Otherwise, the loading image will show * on top of the content. */ declare class TbxLoaderComponent { readonly busy: _angular_core.InputSignal; readonly class: _angular_core.InputSignal; readonly loadImage: _angular_core.InputSignal; protected loaderClass: _angular_core.Signal; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * Maintains a list of spinner components to display on views. */ declare class TbxSpinnerService { /** The cache of registered spinners. */ private spinnerCache; /** * Registers the specified spinner component. * @param spinner - The spinner to register. */ register(spinner: TbxSpinnerComponent): void; /** * Registers the specified spinner component. * @param removeSpinner - The spinner to unregister. */ unregister(removeSpinner: TbxSpinnerComponent): void; /** * Un-registers spinner where their group name matches the specified name. * @param spinnerGroup - The spinner group to unregister. */ unregisterGroup(spinnerGroup: string): void; /** Un-registers/removes all registered spinners. */ unregisterAll(): void; /** * Shows (marks as visible) the specified spinner. * @param spinnerName - The spinner name to show. */ show(spinnerName?: string): void; /** * Hides (marks as invisible) the specified spinner. * @param spinnerName - The spinner name to hide. */ hide(spinnerName?: string): void; /** * Shows (marks as visible) the specified spinner group. * @param spinnerGroup - The spinner group name to show. */ showGroup(spinnerGroup: string): void; /** * Hides (marks as invisible) the specified spinner group. * @param spinnerGroup - The spinner group name to hide. */ hideGroup(spinnerGroup: string): void; /** Shows all registered spinners. */ showAll(): void; /** Hides all registered spinners. */ hideAll(): void; /** * Gets a value indicating whether the specified spinner is showing. * @param spinnerName - The spinner name to check. * @returns True if the spinner is showing, false otherwise. */ isShowing(spinnerName: string): boolean | undefined; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } /** * Intercepts when an HTTP request is made and displays the default spinner. */ declare const tbxSpinnerInterceptor: HttpInterceptorFn; export { TbxLoaderComponent, TbxSpinnerComponent, TbxSpinnerService, tbxSpinnerInterceptor };