import * as i0 from '@angular/core'; import { OnChanges, OnInit, OnDestroy, TemplateRef, SimpleChanges, AfterViewInit } from '@angular/core'; import { IManagedObject, IEvent, EventService, IIdentified, InventoryService } from '@c8y/client'; import { AlertService, DynamicComponent, DynamicComponentAlertAggregator, DashboardChildComponent, WidgetsDashboardComponent, DynamicComponentService } from '@c8y/ngx-components'; import { WidgetConfigService, ContextDashboardComponent } from '@c8y/ngx-components/context-dashboard'; import { GlobalContextState, RefreshOption, WidgetControls, WidgetConfigMigrationService } from '@c8y/ngx-components/global-context'; import { ClusterMapConfig, PositionManagedObject, MapComponent, MapService, ClusterMapComponent } from '@c8y/ngx-components/map'; import { MapDefaultConfig } from '@c8y/options'; import { TranslateService } from '@ngx-translate/core'; import L from 'leaflet'; import { Observable } from 'rxjs'; declare class MapEventInfoComponent implements OnChanges { private eventService; asset: IManagedObject; loading: boolean; event: IEvent; constructor(eventService: EventService); ngOnChanges(): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface MapWidgetConfig extends Partial { device?: IIdentified; mapConfig: ClusterMapConfig; realtime?: boolean; } declare class MapWidgetConfigComponent implements OnInit, OnChanges, OnDestroy { private mapService; private alertService; private translateService; private defaultMapConfig; private widgetConfigService; config: MapWidgetConfig; formConfig: ClusterMapConfig; readonly device: i0.WritableSignal; readonly assets: i0.WritableSignal; readonly canAutoCenter: i0.Signal; readonly isPositionedDevice: i0.Signal; refreshOption: RefreshOption; private destroyed$; private leaflet; private centerIcon; private readonly FIXED_POINT_DIGITS; previewMap: MapComponent; set previewMapSet(template: TemplateRef); constructor(mapService: MapService, alertService: AlertService, translateService: TranslateService, defaultMapConfig: Observable, widgetConfigService: WidgetConfigService); ngOnDestroy(): void; ngOnInit(): void; fitToBound(): Promise; initForm(): Promise; ngOnChanges(changes: SimpleChanges): Promise; previewMapInit(leaflet: typeof L): void; onBeforeSave(): boolean; zoomLevelChanged(): void; changeCenter(): void; changeCenterOnEnterKey(event: KeyboardEvent): void; onPreviewZoomStart(): void; onPreviewZoomEnd(event: L.LeafletEvent): void; onPreviewMapMove(event: L.LeafletEvent): void; useOwnPosition(): void; centerToAsset(): void; fitToBounds(): Promise; selectIcon(icon: string): void; private updateAsset; private addCenterIcon; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class MapWidgetComponent implements OnInit, OnDestroy, AfterViewInit, DynamicComponent { private dashboardContextComponent; private inventory; private mapService; private widgetsDashboardComponent; private dynamicComponentService; private widgetConfigMigrationService; mapConfig: ClusterMapConfig; rootNode: IIdentified; config: MapWidgetConfig; clusterMap: ClusterMapComponent; alerts: DynamicComponentAlertAggregator; assets: PositionManagedObject[]; private TIMEOUT_ERROR_TEXT; private SERVER_ERROR_TEXT; private savedNode; private destroy$; private resizeObserver; controls: WidgetControls; constructor(dashboardChild: DashboardChildComponent, dashboardContextComponent: ContextDashboardComponent, inventory: InventoryService, mapService: MapService, widgetsDashboardComponent: WidgetsDashboardComponent, dynamicComponentService: DynamicComponentService, widgetConfigMigrationService: WidgetConfigMigrationService); ngOnInit(): Promise; ngAfterViewInit(): void; startFollow(context: any): void; stopFollow(): void; ngOnDestroy(): void; fitToBounds(): Promise; onGlobalContext(event: any): Promise; private updateAssets; private listenToWidgetResizeEvent; private subscribeToErrorsOccurred; private updateMapConfigRealtime; private applyDeviceTypeTarget; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export { MapEventInfoComponent, MapWidgetComponent, MapWidgetConfigComponent }; export type { MapWidgetConfig }; //# sourceMappingURL=index.d.ts.map