import * as React from 'react';
import { BoxProps } from '../Box';
import { FieldWrapperProps } from '../FieldWrapper';
export declare type LocalCheckboxProps = {
/** Automatically focus on the checkbox */
autoFocus?: boolean;
/** Indicates if the checkbox is checked. */
checked?: boolean;
/** Spreads the props onto the `` element of the checkbox. */
inputProps?: React.InputHTMLAttributes;
/** Is the checkbox checked by default? */
defaultChecked?: boolean;
/** Disables the checkbox */
disabled?: boolean;
/** Forwards the ref to the checkbox. */
checkboxRef?: React.Ref;
/** Indicates if the checkbox is indeterminate. */
indeterminate?: boolean;
/** Makes the checkbox required and sets aria-invalid to true */
isRequired?: boolean;
/** Checkbox label */
label?: string;
/** Sets the name of the checkbox. */
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 = Omit & LocalCheckboxProps;
export declare const Checkbox: React.ForwardRefExoticComponent & React.RefAttributes> & {
displayName?: string;
useProps: (props?: Partial, config?: {
disableCSSProps?: string[];
themeKey?: string;
}) => any;
};
export declare type LocalCheckboxFieldProps = {
/** Label for the checkbox */
checkboxLabel?: string;
/** Additional props for the Checkbox component */
checkboxProps?: CheckboxProps;
};
export declare type CheckboxFieldProps = BoxProps & FieldWrapperProps & CheckboxProps & LocalCheckboxFieldProps;
export declare const CheckboxField: React.ForwardRefExoticComponent & React.RefAttributes> & {
displayName?: string;
useProps: (props?: Partial, config?: {
disableCSSProps?: string[];
themeKey?: string;
}) => any;
};