import { default as React } from 'react'; import { ECharts } from 'echarts'; import { AstroChartProps, DataPoint, TimeSeriesPoint } from './types'; export interface AstroChartHandle { /** Get ECharts instance */ getChart: () => ECharts | undefined; /** Resize chart */ resize: () => void; /** Export as image (png, jpeg, svg) */ exportImage: (type?: "png" | "jpeg" | "jpg" | "svg", pixelRatio?: number) => string | undefined; /** Export data as CSV */ exportCSV: () => string; /** Suggested export filename from title, series names, and chart type (with optional extension and timestamp) */ getExportFileName: (extension?: string, includeTimestamp?: boolean) => string; /** Append data for real-time updates */ appendData: (seriesIndex: number, data: DataPoint | TimeSeriesPoint) => void; /** Clear all data */ clearData: () => void; /** Dispatch action */ dispatchAction: (action: unknown) => void; } export declare const AstroChart: React.MemoExoticComponent>>; export default AstroChart;