import './LegendItem.css'; import { IconProps } from '@consta/icons/Icon'; import React from 'react'; import { PropsWithHTMLAttributesAndRef } from "../../utils/types/PropsWithHTMLAttributes"; export declare const iconTypes: readonly ["dot", "line", "lineBold", "gap"]; export declare type IconType = typeof iconTypes[number]; export declare type Icon = IconType | React.FC; export declare const sizes: readonly ["xs", "s", "m"]; export declare type Size = typeof sizes[number]; export declare type LegendItemMouseEventHandler = (props: { e: React.MouseEvent; item: ITEM; }) => void; declare type CommonProps = { label: string; color?: string; icon?: Icon; size?: Size; className?: string; /** Обрезать текст, если он больше 2 строк */ shouldCropText?: boolean; children?: never; }; declare type LegendItem = (props: PropsWithHTMLAttributesAndRef) => React.ReactElement | null; export declare const LegendItem: LegendItem; export {};