import { Generic } from "cmf.core/src/core";
import * as ng from "@angular/core";
/**
* The ProgressIndicator directive shows a progress indicator
* hover a given element and blur its content.
*
* This can be used in any element. In order to activate it, it needs to receive an
* event to start or stop the directive.
*
* ## Inputs
* `boolean` : **bypass** - If enabled, this progress indicator will not process any event
* `boolean` : **delay** - Time to delay when the window resizes to update the drawer position
* `boolean` : **draw** - If disabled, it will process all the events and dispatch the outputs, but it will not draw any progress indicator
*
* ## Outputs
* `void` : **start** - Event dispatched when the progress indicator is drawn
* `void` : **end** - Event dispatched when the progress indicator is removed
*
* ## Example
*
* Assume this HTML Template
*
* ```html
*
*
* This is my component
*
* ```
*/
export declare class ProgressIndicator extends Generic implements ng.OnDestroy {
private el;
private _ngZone;
private _activeCounter;
private _loaderElement;
private _resizeUnsubscribeCallback;
private _startProgressIndicatorHandler;
private _stopProgressIndicatorHandler;
/**
* If this input [cmf-core-controls-progressIndicator-bypass]
* is set to true it disables the progress indicator.
* Useful when you want the progress indicator to be disabled
* and/or the event to be propagated upwards.
*/
bypass: boolean;
/**
* Delay to use when reacting to resize events.
* This can be useful if there is any resize happening in the background when a resize occurs.
*/
delay: number;
/**
* Indicates if this component should draw an indicator.
* This can be used to override the indicator.
*/
draw: boolean;
/**
* Start event.
* This will be dispatched only when the progress indicator is shown.
*/
start: ng.EventEmitter;
/**
* End event.
* This will be dispatched only when the progress indicator is removed.
*/
stop: ng.EventEmitter;
constructor(el: ng.ElementRef, _ngZone: ng.NgZone);
private startProgressIndicatorHandler;
private stopProgressIndicatorHandler;
/**
* Show the progress indicator (blur & spinner) on a element
*/
private drawIndicator;
private calculateLoaderStyle;
private removeIndicator;
private subscribeResizeEvent;
private unsubscribeResizeEvent;
/**
* On component destruction - unsubscribe event.
*/
ngOnDestroy(): void;
}
export declare class ProgressIndicatorModule {
}