import React from 'react'; import CheckboxGroup from './checkbox-group'; import { NormalSizes } from '../utils/prop-types'; interface CheckboxEventTarget { checked: boolean; } export interface CheckboxEvent { target: CheckboxEventTarget; stopPropagation: () => void; preventDefault: () => void; nativeEvent: React.ChangeEvent; } interface Props { checked?: boolean; disabled?: boolean; initialChecked?: boolean; onChange?: (e: CheckboxEvent) => void; size?: NormalSizes; className?: string; value?: string; } declare const defaultProps: { disabled: boolean; initialChecked: boolean; size: "mini" | "small" | "medium" | "large"; className: string; value: string; }; type NativeAttrs = Omit, keyof Props>; export type CheckboxProps = Props & typeof defaultProps & NativeAttrs; type CheckboxComponent

= React.FC

& { Group: typeof CheckboxGroup; }; type ComponentProps = Partial & Omit & NativeAttrs; declare const _default: CheckboxComponent; export default _default;