import type { ReactNode } from 'react'; import type { CSSProperties } from 'react'; import type { SxProp } from '../Layout/sx.js'; import type { BarSeries } from './BarChart.js'; export interface LineChartProps = Record> { data: D[]; xKey: string; series: BarSeries[]; height?: number; /** Accessible label for the chart (svg `aria-label` + hidden table caption). */ label?: string; /** Fill the area under each line. */ area?: boolean; /** Stack the series (area charts). */ stacked?: boolean; /** Show point markers. Automatically skipped above ~100 visible points per series. */ dots?: boolean; /** * Max points drawn per series. Longer series are reduced with LTTB (visual shape kept); * the tooltip and keyboard navigation still use the full data. Default ~2 per plot pixel. */ maxPoints?: number; /** Entrance animation (and smooth transitions when data changes). Default `true`; off under reduced motion and for very large charts. */ animate?: boolean; grid?: boolean; legend?: boolean; /** Clicking a legend entry hides / shows that series. Default `true`. */ legendToggle?: boolean; /** Vertical guide line (and enlarged points) at the hovered category. Default `true`. */ crosshair?: boolean; /** Content shown instead of the chart when there is no data. Default "No data". */ empty?: ReactNode; /** Format y-axis tick values. Default compact (1.2K, 3M). */ yTickFormatter?: (value: number) => string; xTickFormatter?: (value: string) => string; renderTooltip?: (params: { label: string; datum: D; }) => ReactNode; className?: string; style?: CSSProperties; /** * One-off CSS, same as `Box`'s `sx`: each value may be a scalar or a * responsive breakpoint map (`{ base, sm, md, lg, xl }`). Scalar-only sx * merges into inline style; responsive sx injects a scoped class. Applied to * the chart's outer container. */ sx?: SxProp; } export declare function LineChart>(props: LineChartProps): import("react/jsx-runtime").JSX.Element; export declare function AreaChart>(props: LineChartProps): import("react/jsx-runtime").JSX.Element;