import './ChoiceGroup.css'; import React from 'react'; import { IconProps, 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) => React.FC | undefined; declare type CommonProps = { size?: ChoiceGroupPropSize; form?: ChoiceGroupPropForm; view?: ChoiceGroupPropView; width?: ДhoiceGroupPropWidth; onlyIcon?: boolean; iconSize?: IconPropSize; items: ITEM[]; getLabel: ChoiceGroupPropGetLabel; getIcon?: ChoiceGroupPropGetIcon; name: string; children?: never; }; declare type OnChangeMultiple = (props: { e: React.ChangeEvent; value: ITEM[] | null; }) => void; declare type OnChangeWithoutMultiple = (props: { e: React.ChangeEvent; value: ITEM; }) => void; declare type PropsWithMultiple = { value?: ITEM[] | null; multiple: true; onChange: OnChangeMultiple; }; declare type PropsWithoutMultiple = { value?: ITEM | null; multiple: false; onChange: OnChangeWithoutMultiple; }; declare type Props = PropsWithHTMLAttributesAndRef & (PropsWithMultiple | PropsWithoutMultiple), HTMLDivElement>; declare type ChoiceGroup = (props: Props) => React.ReactElement | null; export declare const cnChoiceGroup: import("@bem-react/classname").ClassNameFormatter; export declare const ChoiceGroup: ChoiceGroup; export {};