import * as React from "react"; import type { DefaultLegendContentProps, DefaultTooltipContentProps, ResponsiveContainerProps, TooltipValueType } from "recharts"; import * as RechartsPrimitive from "recharts"; declare const THEMES: { readonly light: ""; readonly dark: ".dark"; }; /** * Describes per-series chart metadata used by legend and tooltip renderers. */ type ChartConfigItem = { /** * Label rendered by shared legends and tooltips for the series. * @default undefined */ label?: React.ReactNode; /** * Optional icon rendered in legends and tooltips instead of the color swatch. * @default undefined */ icon?: React.ComponentType; /** * Unit suffix appended to rendered values when the payload does not provide one. * @default undefined */ unit?: string; /** * Shared numeric formatter used by helper content renderers when no Recharts tooltip formatter is supplied. * @default undefined */ formatter?: (value: number) => string; /** * Recharts stack identifier that consuming chart primitives can read from config. * @default undefined */ stackId?: string; }; export type ChartConfig = Record; })>; interface ChartContainerProps extends Omit, "children" | "className" | "id">, Pick { /** * Series configuration used to resolve labels, icons, and colors. * @default undefined */ config: ChartConfig; /** * Inline styles applied to the inner `ResponsiveContainer`. * @default undefined */ innerResponsiveContainerStyle?: React.ComponentProps["style"]; } /** * Provides responsive chart layout and series config context for Recharts content. * * @remarks * - Renders a wrapping `
` element * - Built on `recharts` `ResponsiveContainer` * - Injects CSS variables so legends and tooltips can share theme-aware colors * * @example * ```tsx * * ... * * ``` * * @see {@link https://recharts.org/en-US/api/ResponsiveContainer | Recharts ResponsiveContainer Docs} */ declare const ChartContainer: React.ForwardRefExoticComponent & React.RefAttributes>; /** * Emits theme-aware CSS variables for configured chart series colors. * * @remarks * - Renders a `