/** * [WHO]: Chart container, tooltip, legend, style, and chart config helpers. * [FROM]: React, recharts, registry/lib/utils. * [TO]: sparkdesign package consumers; Showcase; CLI registry copies. * [HERE]: registry/basic/chart.tsx — tokenized shadcn-derived chart wrapper primitives. * * [PROTOCOL]: * 1. Keep this P3 header in sync when the public contract changes. * 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change. * 3. Follow design tokens and explicit type exports. */ import * as React from "react"; import * as RechartsPrimitive from "recharts"; import type { TooltipValueType } from "recharts"; declare const THEMES: { readonly light: ""; readonly dark: ".dark"; }; type TooltipNameType = number | string; export type ChartConfig = Record; })>; declare function ChartContainer({ id, className, children, config, initialDimension, ...props }: React.ComponentProps<"div"> & { config: ChartConfig; children: React.ComponentProps["children"]; initialDimension?: { width: number; height: number; }; }): import("react/jsx-runtime").JSX.Element; declare const ChartStyle: ({ id, config }: { id: string; config: ChartConfig; }) => import("react/jsx-runtime").JSX.Element | null; declare const ChartTooltip: typeof RechartsPrimitive.Tooltip; declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React.ComponentProps & React.ComponentProps<"div"> & { hideLabel?: boolean; hideIndicator?: boolean; indicator?: "line" | "dot" | "dashed"; nameKey?: string; labelKey?: string; } & Omit, "accessibilityLayer">): import("react/jsx-runtime").JSX.Element | null; declare const ChartLegend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>; declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React.ComponentProps<"div"> & { hideIcon?: boolean; nameKey?: string; } & RechartsPrimitive.DefaultLegendContentProps): import("react/jsx-runtime").JSX.Element | null; export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, };