import React, { ForwardedRef } from 'react'; import { Box, PropsBox } from './Radio.styles'; import { ResponsiveProp, Breakpoints } from '../Utils/responsiveness'; import { BoxStyled } from '../Utils/styled'; import { OnChangeHandler } from '../Utils/types/values.types'; import { WithViewOnlyAndDisabledIcon } from '../ViewOnly'; import { Pretty } from '../Utils'; export type RadioSize = ResponsiveProp<'s' | 'm' | 'l', B>; export type RadioEvent = (event: T, data: { name?: string; value: string; }) => void; export interface RadioProps extends Omit, 'ref' | 'onFocus' | 'onBlur' | 'onChange'>, WithViewOnlyAndDisabledIcon { /** Размеры */ size?: ResponsiveProp<'s' | 'm' | 'l', B>; /** Имя компонента (важно для группировки) */ name?: string; /** Значение компонента */ value: string; /** Состояние компонента */ checked?: boolean; /** Компонент неактивен если true */ disabled?: boolean; /** Компонент отображается как ошибочный если true */ invalid?: boolean; /** Обработчик события при потере фокуса компонентом */ onBlur?: RadioEvent>; /** Обработчик события при получении фокуса компонентом */ onFocus?: RadioEvent>; /** Обработчик события при клике на компонент */ onChange?: OnChangeHandler>; } declare function RadioInternal({ children, size, checked, disabled, invalid, name, value, tabIndex, viewOnly, viewOnlyText, viewOnlyDisableIcon, onChange, onBlur, onFocus, ...attrs }: RadioProps, ref: React.Ref): React.JSX.Element; export declare namespace Radio { type OnChange = Pretty.Func>>; type OnBlur = Pretty.Func>>; type OnFocus = Pretty.Func>>; } export declare const Radio: (props: RadioProps & { ref?: ForwardedRef; }) => ReturnType; export {};