import * as React from 'react'; import * as PropTypes from 'prop-types'; import { LabelProps as ReakitLabelProps } from 'reakit/ts'; export declare type LocalCheckboxProps = { /** Automatically focus on the checkbox */ autoFocus?: boolean; checked?: boolean; checkboxRef?: React.RefObject; className?: string; /** Is the checkbox checked by default? */ defaultChecked?: boolean; /** Disables the checkbox */ disabled?: boolean; /** ID for the checkbox */ id?: string; indeterminate?: boolean; /** Makes the checkbox required and sets aria-invalid to true */ isRequired?: boolean; /** Checkbox label */ label?: string; name?: string; /** State of the checkbox. Can be any color in the palette. */ state?: string; /** Initial value of the checkbox */ value?: boolean | string; /** Function to invoke when focus is lost */ onBlur?: React.FocusEventHandler; /** Function to invoke when checkbox has changed */ onChange?: React.FormEventHandler; /** Function to invoke when checkbox is focused */ onFocus?: React.FocusEventHandler; }; export declare type CheckboxProps = LocalCheckboxProps & ReakitLabelProps; export declare type CheckboxComponents = { Formik: React.FunctionComponent; ReduxForm: React.FunctionComponent; }; export declare const Checkbox: React.FunctionComponent & CheckboxComponents; export declare const checkboxPropTypes: { autoFocus: PropTypes.Requireable; checked: PropTypes.Requireable; className: PropTypes.Requireable; checkboxRef: PropTypes.Validator>; defaultChecked: PropTypes.Requireable; disabled: PropTypes.Requireable; id: PropTypes.Requireable; indeterminate: PropTypes.Requireable; isRequired: PropTypes.Requireable; label: PropTypes.Requireable; name: PropTypes.Requireable; state: PropTypes.Requireable; value: PropTypes.Requireable; onBlur: PropTypes.Requireable<(...args: any[]) => any>; onChange: PropTypes.Requireable<(...args: any[]) => any>; onFocus: PropTypes.Requireable<(...args: any[]) => any>; }; export declare const checkboxDefaultProps: { autoFocus: boolean; checked: any; className: any; checkboxRef: any; defaultChecked: any; disabled: boolean; id: any; indeterminate: boolean; isRequired: boolean; label: any; onBlur: any; onChange: any; onFocus: any; name: any; state: any; value: any; }; declare const C: React.FunctionComponent & CheckboxComponents; export default C;