import { BaseChartProps, ChartChangeEvent, Formatter, Margin } from '../../types';
import { LegendLayout } from '../../components';
/** LineChart margin: left is optional and will be auto-computed from y-tick labels when omitted. */
export type LineChartMargin = Omit<Margin, 'left'> & {
    left?: number;
};
export interface LineData {
    x: number[];
    y: number[];
    high?: number[];
    low?: number[];
}
export interface LineSeries extends LineData {
    label: string;
    color?: string;
    lineWidth?: number;
    lineStyle?: string;
    showPoints?: boolean;
    pointRadius?: number;
    fillColor?: string;
    fillOpacity?: number;
    showArea?: boolean;
}
export type LineDataPoint = LineData;
export interface LineChartProps extends Omit<BaseChartProps, 'margin'> {
    /** Margin around the plot area. left is optional — omit to auto-compute from y-tick labels. */
    margin?: LineChartMargin;
    /** Series data (can be provided via this prop or via TimeSeries children) */
    series?: LineSeries[];
    xLabel?: string;
    yLabel?: string;
    title?: string;
    grid?: boolean;
    gridColor?: string;
    legend?: boolean;
    /** Layout of the legend */
    layout?: LegendLayout;
    xMin?: number;
    xMax?: number;
    yMin?: number;
    yMax?: number;
    xTickCount?: number;
    yTickCount?: number;
    canvas?: boolean;
    xFormat?: Formatter;
    yFormat?: Formatter;
    /** Highlight the nearest series on hover, dimming all others. Default: false */
    highlightOnHover?: boolean;
    /**
     * Maximum pixel distance from the cursor to the nearest data point for
     * highlighting to activate. When the cursor is farther than this distance
     * from all series, no highlight is applied. Only effective when
     * highlightOnHover is true. Default: Infinity (always highlight nearest).
     */
    highlightThreshold?: number;
    onChange?: (event: ChartChangeEvent) => void;
    children?: React.ReactNode;
}
