import * as i0 from '@angular/core'; import { Type, ViewRef, ViewContainerRef, OnInit, OnDestroy } from '@angular/core'; import { ReplaySubject, Subject } from 'rxjs'; import { FileDataObject, VectorDataObject } from 'hslayers-ng/types'; declare class HsDialogItem { component: Type; data: any; resolve: (value?: unknown) => void; reject: (reason?: any) => void; waitResult(): Promise; constructor(component: Type, data: any); } interface HsDialogComponent { cleanup?(): void; dialogItem?: HsDialogItem; viewRef: ViewRef; data: any; } declare class HsDialogContainerService { dialogs: Array; dialogObserver: ReplaySubject; dialogDestroyObserver: Subject; constructor(); cleanup(): void; create(component: Type, data: any): HsDialogItem; destroy(component: HsDialogComponent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class HsDialogHostDirective { viewContainerRef: ViewContainerRef; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class HsDialogContainerComponent implements OnInit, OnDestroy { hsDialogContainerService: HsDialogContainerService; dialogHost: HsDialogHostDirective; interval: any; private destroyRef; ngOnDestroy(): void; ngOnInit(): void; destroyDialog(dialog: HsDialogComponent): void; loadDialog(dialogItem: HsDialogItem): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HsLayerOverwriteDialogComponent implements HsDialogComponent { hsDialogContainerService: HsDialogContainerService; dialogItem: HsDialogItem; viewRef: ViewRef; data: { dataObj: FileDataObject | VectorDataObject; repetive: boolean; }; /** * Close the dialog */ close(): void; /** * Overwrite the existing layer with current layer data */ overwrite(): void; renameAndAdd(): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HsRenameLayerDialogComponent implements HsDialogComponent, OnInit { hsDialogContainerService: HsDialogContainerService; dialogItem: HsDialogItem; viewRef: ViewRef; newLayerName: string; data: { currentName: string; }; ngOnInit(): void; /** * Close the dialog */ close(): void; /** * Continue with the new layer name from user's input */ continue(): void; handleKeyUp(e: KeyboardEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HsCompositionsWarningDialogComponent implements HsDialogComponent { hsDialogContainerService: HsDialogContainerService; viewRef: ViewRef; data: any; close(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export { HsCompositionsWarningDialogComponent, HsDialogContainerComponent, HsDialogContainerService, HsDialogHostDirective, HsDialogItem, HsLayerOverwriteDialogComponent, HsRenameLayerDialogComponent }; export type { HsDialogComponent };