import * as i0 from '@angular/core'; import { ViewContainerRef, AfterViewInit, OnInit, ElementRef, Signal, OnDestroy, DestroyRef } from '@angular/core'; import { HsConfig, HsConfigObject, ToastPosition } from 'hslayers-ng/config'; import { HsEventBusService } from 'hslayers-ng/services/event-bus'; import { HsLayoutService } from 'hslayers-ng/services/layout'; import { HsPanelContainerService, HsOverlayContainerService } from 'hslayers-ng/services/panels'; import * as i4 from '@angular/common'; import { Subscription, MonoTypeOperatorFunction } from 'rxjs'; import { HsMapService } from 'hslayers-ng/services/map'; import * as i6 from 'hslayers-ng/components/sidebar'; import * as i7 from 'hslayers-ng/common/panels'; import * as i8 from 'hslayers-ng/common/toast'; import * as i9 from 'hslayers-ng/common/dialogs'; declare class HsMapHostDirective { viewContainerRef: ViewContainerRef; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class HslayersComponent implements AfterViewInit, OnInit { hsConfig: HsConfig; private elementRef; hsLayoutService: HsLayoutService; private hsLog; hsEventBusService: HsEventBusService; hsPanelContainerService: HsPanelContainerService; hsOverlayContainerService: HsOverlayContainerService; private hsExternalService; private ngZone; private platformId; private destroyRef; config: HsConfigObject; id: string; hslayout: ElementRef; mapHost: HsMapHostDirective; sidebarPosition: Signal; sidebarVisible: Signal; private panState; private panelSpace; private mapSpace; toastPosition: Signal; constructor(); ngOnInit(): Promise; ngAfterViewInit(): Promise; /** * Updates the height of the panel space based on the pan event. * * @param e The pan event object. */ private updatePanelHeight; /** * Snaps the panel space to the nearest height. */ /** * Snaps the panel space to the nearest height based on the pan event. * * @param e The pan event object. */ private snapToNearestHeight; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HsLayoutHostDirective { viewContainerRef: ViewContainerRef; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class HslayersService { private hsLanguageService; hsMapService: HsMapService; hsConfig: HsConfig; hsLayoutService: HsLayoutService; private log; hsEventBusService: HsEventBusService; embeddedEnabled: boolean; initCalled: boolean; constructor(); /** * Add event listeners for updating HS element and map size after browser resizing or complete load of application. */ initSizeListeners(): void; /** * Update map size. */ mapSizeUpdates(): void; /** * Do complete reset of map (view, layers) according to app config */ resetMap(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class HsMapComponent implements AfterViewInit, OnDestroy { hsMapService: HsMapService; hslayersService: HslayersService; hsConfig: HsConfig; hsEventBusService: HsEventBusService; private hsLayoutService; private hsShareUrlService; private zone; map: ElementRef; unregisterMapSyncCenterHandlerSubscription: Subscription; constructor(); ngAfterViewInit(): void; ngOnDestroy(): void; /** * This gets called from Cesium map, to * synchronize center and resolution between Ol and Cesium maps * @param data - Coordinates in lon/lat and resolution */ onCenterSync(data?: any): void; /** * Calculates zoom level for a given resolution * @param resolution - Resolution * @returns Zoom level for resolution. If resolution * was greater than 156543.03390625 return 0 */ zoomForResolution(resolution: any): number; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HslayersModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class HsMapDirective { viewContainerRef: ViewContainerRef; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * A safer version of takeUntilDestroyed that handles edge cases around component destruction. * Based on: https://github.com/angular/angular/issues/54527#issuecomment-2098254508 */ declare function safeTakeUntilDestroyed(destroyRef?: DestroyRef): MonoTypeOperatorFunction; export { HsLayoutHostDirective, HsMapComponent, HsMapDirective, HsMapHostDirective, HslayersComponent, HslayersModule, HslayersService, safeTakeUntilDestroyed };