import { ReactElement } from 'react'; import { TableLegendProps } from './TableLegend'; import { LegendItem, LegendComponentOptions, SelectedLegendItemState } from './legend-model'; import { ListLegendItemProps } from './ListLegendItem'; export interface LegendProps { width: number; height: number; data: LegendItem[]; options: LegendComponentOptions; /** * State of selected items in the legend. * * Selected legend item state is a controlled value that should be managed using a * combination of this prop and `onSelectedChange`. */ selectedItems: SelectedLegendItemState; /** * Callback fired when the selected items in the legend changes. */ onSelectedItemsChange: (newSelected: SelectedLegendItemState) => void; /** * Callback fired when the mouse is moved over a legend item. */ onItemMouseOver?: ListLegendItemProps['onMouseOver']; /** * Callback fired when the mouse is moved out of a legend item. */ onItemMouseOut?: ListLegendItemProps['onMouseOut']; /** * Props specific to legend with `mode` set to `table`. */ tableProps?: Pick; } export declare function Legend({ width, height, options, data, selectedItems, onSelectedItemsChange, onItemMouseOver, onItemMouseOut, tableProps, }: LegendProps): ReactElement; //# sourceMappingURL=Legend.d.ts.map