import { ReactNode } from 'react'; import { IRadioContext } from './GroupContext'; import { IDisabledContext } from '../disabled'; export interface IRadioEvent extends Omit, 'target'> { target: { type: 'radio'; checked: boolean; } & IRadioProps; } export interface IRadioProps { value?: Value; disabled?: boolean; readOnly?: boolean; width?: number | string; className?: string; checked?: boolean; onChange?: (e: IRadioEvent) => void; style?: React.CSSProperties; children?: ReactNode; onMouseEnter?: React.MouseEventHandler; onMouseLeave?: React.MouseEventHandler; } export declare function useRadioHandler(ctx: IRadioContext | null, props: IRadioProps): (event: any) => void; export declare function getRadioState(disabledCtx: IDisabledContext, groupCtx: IRadioContext | null, props: IRadioProps): { checked: boolean; disabled: boolean; readOnly: boolean; };