import * as react from 'react'; interface ChartBarData { label: string; value: number; color?: string; } interface ChartBarProps { data: ChartBarData[]; height?: number; showValues?: boolean; className?: string; } interface ChartDonutData { label: string; value: number; color?: string; } interface ChartDonutProps { data: ChartDonutData[]; size?: number; strokeWidth?: number; showLegend?: boolean; className?: string; } interface ChartSeries { label: string; data: number[]; color?: string; } interface ChartCommonProps { className?: string; height?: number; xAxis?: boolean | { label?: string; tickCount?: number; }; yAxis?: boolean | { label?: string; tickCount?: number; }; grid?: boolean | { horizontal?: boolean; vertical?: boolean; }; tooltip?: boolean; animate?: boolean; responsive?: boolean; } interface ChartLineProps extends ChartCommonProps { labels: string[]; series: ChartSeries[]; curve?: "linear" | "monotone"; showDots?: boolean; fill?: boolean; fillOpacity?: number; } type ChartAreaProps = Omit; interface ChartPieData { label: string; value: number; color?: string; } interface ChartPieProps { data: ChartPieData[]; size?: number; showLabels?: boolean; tooltip?: boolean; className?: string; } interface ChartSparklineProps { data: number[]; width?: number; height?: number; color?: string; className?: string; } interface ChartHorizontalBarProps { data: ChartBarData[]; height?: number; showValues?: boolean; className?: string; } interface ChartStackedBarProps extends ChartCommonProps { labels: string[]; series: ChartSeries[]; } declare function ChartBar({ data, height, showValues, className, }: ChartBarProps): react.JSX.Element; declare namespace ChartBar { var displayName: string; } declare function ChartDonut({ data, size, strokeWidth, showLegend, className, }: ChartDonutProps): react.JSX.Element; declare namespace ChartDonut { var displayName: string; } declare function ChartLine({ labels, series, height, curve, showDots, fill, fillOpacity, xAxis, yAxis, grid, tooltip, animate, responsive, className, }: ChartLineProps): react.JSX.Element; declare namespace ChartLine { var displayName: string; } declare function ChartArea(props: ChartAreaProps): react.JSX.Element; declare namespace ChartArea { var displayName: string; } declare function ChartPie({ data, size, showLabels, tooltip, className, }: ChartPieProps): react.JSX.Element; declare namespace ChartPie { var displayName: string; } declare function ChartSparkline({ data, width, height, color, className, }: ChartSparklineProps): react.JSX.Element; declare namespace ChartSparkline { var displayName: string; } declare function ChartHorizontalBar({ data, height, showValues, className, }: ChartHorizontalBarProps): react.JSX.Element; declare namespace ChartHorizontalBar { var displayName: string; } declare function ChartStackedBar({ labels, series, height, xAxis, yAxis, grid, tooltip, responsive, className, }: ChartStackedBarProps): react.JSX.Element; declare namespace ChartStackedBar { var displayName: string; } declare const Chart: { Bar: typeof ChartBar; Donut: typeof ChartDonut; Line: typeof ChartLine; Area: typeof ChartArea; Pie: typeof ChartPie; Sparkline: typeof ChartSparkline; HorizontalBar: typeof ChartHorizontalBar; StackedBar: typeof ChartStackedBar; }; export { Chart, type ChartAreaProps, type ChartBarData, type ChartBarProps, type ChartCommonProps, type ChartDonutData, type ChartDonutProps, type ChartHorizontalBarProps, type ChartLineProps, type ChartPieData, type ChartPieProps, type ChartSeries, type ChartSparklineProps, type ChartStackedBarProps };