import { CSSProperties, ReactNode } from 'react'; import { CardLegend, ChartLegendSwatch, ChartLegendVariant } from '../types'; export interface ValueLegendEntry { id: string; label: string; color: string; value: number | null; formattedValue: string; } /** The legend layout a card's `legend` prop names: its value tiles are the `cards` layout. */ export declare const cardLegendVariant: (legend: CardLegend) => ChartLegendVariant; export interface ValueLegendProps { items: Entries; /** `cards` (default), `inline`, `list`, `pills`, or `bars`. */ variant?: ChartLegendVariant; /** The mark beside each label: `square` (default), `dot`, or `line`. */ swatch?: ChartLegendSwatch; activeId?: NoInfer | null; selectedId?: NoInfer | null; onHoverIdChange?: (id: NoInfer | null) => void; onSelectedIdChange?: (id: NoInfer | null) => void; /** Series currently hidden from the chart. */ hiddenIds?: readonly NoInfer[]; /** * Makes the legend a visibility control: clicking a tile hides or shows its series, and each * tile offers "Only" and "Show all". The last visible series can't be hidden. */ onHiddenIdsChange?: (ids: NoInfer[]) => void; renderLabel?: (entry: Entries[number]) => ReactNode; renderValue?: (entry: Entries[number]) => ReactNode; renderSwatch?: (entry: Entries[number]) => ReactNode; renderItem?: (entry: Entries[number]) => ReactNode; 'aria-label'?: string; className?: string; style?: CSSProperties; } /** Family-neutral values and layout. The consumer supplies measurements and interaction ownership. */ export declare function ValueLegend({ items, variant, swatch, activeId, selectedId, onHoverIdChange, onSelectedIdChange, hiddenIds, onHiddenIdsChange, renderLabel, renderValue, renderSwatch, renderItem, 'aria-label': ariaLabel, className, style, }: ValueLegendProps): import("react/jsx-runtime").JSX.Element;