import * as _angular_core from '@angular/core'; import { OnInit, OnChanges, OnDestroy } from '@angular/core'; import { TranslatableString } from '@siemens/element-translate-ng/translate'; import * as rxjs from 'rxjs'; import { BehaviorSubject } from 'rxjs'; declare class SiLoadingButtonComponent { /** * Whether the button is disabled. * @defaultValue false */ readonly disabled: _angular_core.InputSignalWithTransform; /** * Whether the loading state should be displayed. * @defaultValue false */ readonly loading: _angular_core.InputSignalWithTransform; /** * Type of the button. * @defaultValue 'button' **/ readonly type: _angular_core.InputSignal<"button" | "submit" | "reset">; /** aria-label for the button */ readonly ariaLabel: _angular_core.InputSignal; /** aria-labelledby for the button */ readonly ariaLabelledBy: _angular_core.InputSignal; /** * CSS class for the button. * @defaultValue '' */ readonly buttonClass: _angular_core.InputSignal; protected handleClick(event: Event): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class SiLoadingSpinnerComponent { /** * Whether the spinner blocks interaction with the surrounding content. * * @defaultValue false */ readonly isBlockingSpinner: _angular_core.InputSignalWithTransform; /** * Whether the spinner is displayed as an overlay. * * @defaultValue false */ readonly isSpinnerOverlay: _angular_core.InputSignalWithTransform; /** * Needed for a11y * * @defaultValue * ``` * t(() => $localize`:@@SI_LOADING_SPINNER.LABEL:Loading`) * ``` */ readonly ariaLabel: _angular_core.InputSignal; /** * Optional text to be displayed below the spinner. */ readonly loadingText: _angular_core.InputSignal; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } declare class SiLoadingSpinnerDirective implements OnInit, OnChanges, OnDestroy { /** * Displays the loading spinner when the value is either true or non-zero. */ readonly siLoading: _angular_core.InputSignal; /** * Displays semi-transparent backdrop for the spinner, default is false. * * @defaultValue false */ readonly blocking: _angular_core.InputSignalWithTransform; /** * Specifies if the spinner should be displayed after a delay, default is true. * * @defaultValue true */ readonly initialDelay: _angular_core.InputSignalWithTransform; /** * Optional text to be displayed below the spinner. */ readonly loadingText: _angular_core.InputSignal; private el; private readonly viewRef; private cdRef; private sub?; private progressSubject; private off$; private on$; private readonly initialWaitTime; private minSpinTime; private portalOutlet?; private readonly compPortal; protected readonly spinner$: rxjs.Observable; private createPortal; ngOnInit(): void; ngOnChanges(): void; ngOnDestroy(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare class SiLoadingService { /** * Counts the number of loads active, is `0` when all loading is finished (or hasn't started). */ readonly counter: BehaviorSubject; /** * Start the loading. */ startLoad(): void; /** * Stop the loading. */ stopLoad(): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } declare class SiLoadingSpinnerModule { static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵmod: _angular_core.ɵɵNgModuleDeclaration; static ɵinj: _angular_core.ɵɵInjectorDeclaration; } export { SiLoadingButtonComponent, SiLoadingService, SiLoadingSpinnerComponent, SiLoadingSpinnerDirective, SiLoadingSpinnerModule };