import './ChoiceGroup.css'; import React from 'react'; import { IconComponent, IconPropSize } from '../../icons/_Icon/Icon'; import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes'; export declare const choiceGroupForms: readonly ["default", "brick", "round"]; export declare type ChoiceGroupPropForm = typeof choiceGroupForms[number]; export declare const choiceGroupDefaultForm: ChoiceGroupPropForm; export declare const choiceGroupSizes: readonly ["xs", "s", "m", "l"]; export declare type ChoiceGroupPropSize = typeof choiceGroupSizes[number]; export declare const choiceGroupDefaultSize: ChoiceGroupPropSize; export declare const choiceGroupViews: readonly ["primary", "ghost", "secondary"]; export declare type ChoiceGroupPropView = typeof choiceGroupViews[number]; export declare const choiceGroupDefaultView: ChoiceGroupPropView; export declare const choiceGroupWidth: readonly ["default", "full"]; export declare type ДhoiceGroupPropWidth = typeof choiceGroupWidth[number]; export declare const choiceGroupWidthDefault: ДhoiceGroupPropWidth; export declare type ChoiceGroupPropGetLabel = (item: ITEM) => string | number; export declare type ChoiceGroupPropGetIcon = (item: ITEM) => IconComponent | undefined; export declare type ChoiceGroupPropValue = (MULTIPLE extends true ? ITEM[] : ITEM) | null; export declare type ChoiceGroupPropOnChange = (props: { e: React.ChangeEvent; value: MULTIPLE extends true ? ITEM[] | null : ITEM; }) => void; export declare type Props = PropsWithHTMLAttributesAndRef<{ size?: ChoiceGroupPropSize; form?: ChoiceGroupPropForm; view?: ChoiceGroupPropView; width?: ДhoiceGroupPropWidth; onlyIcon?: boolean; iconSize?: IconPropSize; items: ITEM[]; getLabel: ChoiceGroupPropGetLabel; getIcon?: ChoiceGroupPropGetIcon; name: string; disabled?: boolean; getDisabled?: (item: ITEM) => boolean | undefined; value?: ChoiceGroupPropValue; onChange?: ChoiceGroupPropOnChange; multiple?: MULTIPLE; truncate?: boolean; children?: never; }, HTMLDivElement>; declare type ChoiceGroupComponent = (props: Props) => React.ReactElement | null; export declare const cnChoiceGroup: import("@bem-react/classname").ClassNameFormatter; export declare const ChoiceGroup: ChoiceGroupComponent; export {};