import { OnInit, OnChanges, SimpleChanges, EventEmitter } from '@angular/core'; import * as echarts from 'echarts'; import { GalenChartDataPoint } from '../../interfaces/galen-chart-data-point'; import { GenericComponentInputs } from '../../interfaces/generic-component-inputs'; import { ZoomData } from '../../interfaces/zoom-data'; import { ChartImageData } from '../../interfaces/chart-image-data'; import { ChartType } from '../../enums/chart-type'; import * as i0 from "@angular/core"; export declare class IcpTrendChartComponent implements OnInit, OnChanges { chartType: ChartType; trendlineType: 'polynomial' | 'linear' | 'moving-average'; movingAveragePeriod: number; polynomialOrder: number; genericComponentInputs: GenericComponentInputs; generatePdfDataAlarm: boolean; zoomData: any; /** An alarm received from the main component for when to reset the current chart. The type * indicates the sub-component that call for the restore */ restoreChartAlarm?: ChartType; /** Sends this chart's pdf data, which captures the chart's instance at the moment as an image, to the parent * component */ chartImageData: EventEmitter; /** * Indicates whether the data for the dataCollectionTable in the galenDataService has * been successfully retreieved via an HTTP request * * If *undefined* => The HTTP request is still underway * * If *true* => Data collection table has been successfully retrieved * * If *false* => Data collection table was NOT successfully retrieved */ dataCollectionRetrievedEvent: EventEmitter; /** A signal to alert the other charts to reset their state */ restoreChartEvent: EventEmitter; /** * Exports the relevant zoom-event data to the parent component */ zoomDataEvent: EventEmitter; private galenDataService; private polynomialRegressionService; private icpRegressionParams; private icpRegressionPoints; private dataPointWasClicked; currentDataCollectionId?: string; mainChartOption: echarts.EChartsOption; waveFormChartOption?: echarts.EChartsOption; mainChartInstance?: echarts.ECharts; waveFormChartInstance?: echarts.ECharts; ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; private updateChartOption; /** * Emits the `@Output chartImageData` with the given `chartImageData` * * @param chartImageData */ emitChartImageData(chartImageData: ChartImageData): void; /** * Emits the given `retrieved` to `@Output dataCollectionRetrievedEvent` * * @param retrieved Indicates whether the data for the dataCollectionTable in the galenDataService * has been successfully retreieved via an HTTP request * * If *undefined* => The HTTP request is still underway * * If *true* => Data collection table has been successfully retrieved * * If *false* => Data collection table was NOT successfully retrieved */ emitDataCollectionRetrievedEvent(retrieved: boolean | undefined): void; /** * Emits the given `zoomData` to the `zoomDataEvent` `Output` directive * @param zoomData */ emitZoomDataRetrievedEvent(zoomData: { type: string; dataZoomId: string; }): void; onChartDataZoom(ec: any): void; onChartRestore(ec: any): void; onDataPointClick(params: any): void; onMainChartInit(ec: any): void; onWaveChartInit(ec: any): void; /** * This is a callback for whenever the user clicks anywhere on the chart. * * If a ICP waveform chart is currently displayed, and the user clicks away from it, then * this callback should remove the current waveform chart. * * @param e $event */ onChartClick(e: any): void; loadData(): void; private handleWaveChartData; getIcpRegression(icpPoints: GalenChartDataPoint[], order: number): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }