import { ComponentFactoryResolver, ElementRef, Injector, OnDestroy, OnInit, Renderer2, ViewContainerRef } from "@angular/core";
import { StarkProgressIndicatorService } from "../services";
import { StarkProgressIndicatorConfig, StarkProgressIndicatorType } from "../entities";
import * as i0 from "@angular/core";
/**
* This directive must be used as attribute on a DOM element and the config provided should be a {@link StarkProgressIndicatorConfig} object:
*
```html
```
*
* Once the directive is initialized, it registers itself to the {@link StarkProgressIndicatorService} and creates an instance of the {@link StarkProgressIndicatorComponent} which is the one that actually displays the progress indicator (e.g., spinner).
*
* From then on you can control the state/visibility of the progress indicator programmatically by using the {@link StarkProgressIndicatorService}:
*
```typescript
// the service should be injected in your component
@Inject(STARK_PROGRESS_INDICATOR_SERVICE) private progressService: StarkProgressIndicatorService;
// then you can call the method to show the progress indicator
this.progressService.show(this.progressIndicatorConfig.topic);
// or to hide it
this.progressService.hide(this.progressIndicatorConfig.topic);
```
*/
export declare class StarkProgressIndicatorDirective implements OnInit, OnDestroy {
_progressService: StarkProgressIndicatorService;
private _viewContainer;
protected renderer: Renderer2;
protected elementRef: ElementRef;
/**
* Configuration object for the progress indicator to be shown.
*/
starkProgressIndicator: StarkProgressIndicatorConfig;
/**
* The topic that the progress indicator will subscribe to.
*/
topic: string;
/**
* Type of progress indicator
*/
type: StarkProgressIndicatorType | string;
/**
* @ignore
*/
private progressSubscription?;
/**
* @ignore
*/
private readonly componentViewRef;
/**
* Class constructor
* @param _progressService - The ProgressIndicator service of the application
* @param componentFactoryResolver - Resolver that returns Angular component factories
* @param injector - The application Injector
* @param _viewContainer - The container where one or more views can be attached to the host element of this directive.
* @param renderer - Angular `Renderer2` wrapper for DOM manipulations.
* @param elementRef - Reference to the DOM element where this directive is applied to.
*/
constructor(_progressService: StarkProgressIndicatorService, componentFactoryResolver: ComponentFactoryResolver, injector: Injector, _viewContainer: ViewContainerRef, renderer: Renderer2, elementRef: ElementRef);
/**
* Registers an instance of progress indicator
* @param progressConfig - `StarkProgressIndicatorConfig` object
*/
registerInstance(progressConfig: StarkProgressIndicatorConfig): void;
/**
* The directive registers itself to the {@link StarkProgressIndicatorService}.
* The component to add is then created and inserted inside of the container.
* Finally, if the host component should be hidden or shown, the "stark-hide" class is removed/added accordingly
*/
ngOnInit(): void;
/**
* The directive de-registers itself from the {@link StarkProgressIndicatorService} when it is destroyed.
*/
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}