import { OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core"; import { Subject } from "rxjs"; import { EventBus, IDataSource, IEvent } from "@nova-ui/bits"; import { IXYScales } from "@nova-ui/charts"; import { TimeseriesScalesService } from "../timeseries-scales.service"; import { ITimeseriesOutput, ITimeseriesWidgetConfig, ITimeseriesWidgetData, ITimeseriesWidgetSeriesData } from "../types"; export declare abstract class TimeseriesChartComponent implements OnChanges, OnDestroy, OnInit { protected eventBus: EventBus; timeseriesScalesService: TimeseriesScalesService; dataSource: IDataSource; widgetData: ITimeseriesOutput; configuration: ITimeseriesWidgetConfig; protected scales: IXYScales; protected destroy$: Subject; protected buildChart$: Subject; protected resetChart: boolean; protected chartBuilt: boolean; get seriesInteractive(): boolean; protected constructor(eventBus: EventBus, timeseriesScalesService: TimeseriesScalesService, dataSource: IDataSource); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; protected applyPreviousTransformer(previousData: any): void; protected transformSeriesData(serie: ITimeseriesWidgetData): void; updateYAxisDomain(): void; removeMetric(metricId: string): void; /** Updates chart data. */ protected abstract updateChartData(): void; protected abstract buildChart(): void; }