import './Legend.css'; import React from 'react'; import { Icon, LegendItemMouseEventHandler, Size } from "../LegendItem"; import { PropsWithHTMLAttributesAndRef } from "../../utils/types/PropsWithHTMLAttributes"; export declare const directions: readonly ["column", "row"]; export declare type Direction = typeof directions[number]; declare type CommonProps = { items: readonly ITEM[]; getItemLabel: (item: ITEM) => string; getItemColor: (item: ITEM) => string; direction: Direction; icon?: Icon; renderLeftSide?: () => React.ReactNode; size: Size; title?: React.ReactNode; onItemMouseEnter?: LegendItemMouseEventHandler; onItemMouseLeave?: LegendItemMouseEventHandler; onItemClick?: LegendItemMouseEventHandler; }; declare type Props = PropsWithHTMLAttributesAndRef, HTMLDivElement>; declare type Legend = (props: Props) => React.ReactElement | null; export declare const Legend: Legend; export {};