import { ReactElement, ReactNode, ChangeEvent } from 'react'; import { CommonProps } from '../common'; export interface CheckboxProps extends Omit { /** * Whether the checkbox is checked. */ checked?: boolean; /** * Whether the checkbox is disabled. */ disabled?: boolean; /** * Id of element. */ id?: string; /** * Whether the checkbox is in indeterminate checked state. */ indeterminate?: boolean; /** * Name of element, is used to refer to the form data for submission. */ name?: string; /** * Set the handler to handle `change` event. */ onChange?: (e: ChangeEvent) => void; /** * Checkbox text. */ text: ReactNode; /** * Checkbox input value. */ value: string | number; } declare const Checkbox: ({ value, text, checked, indeterminate, onChange, disabled, name, id, className, style, sx, "data-test-id": dataTestId, }: CheckboxProps) => ReactElement; export default Checkbox;