import React, { PureComponent } from 'react'; interface CheckBoxTheme { readonly checkbox: string; readonly checkbox__checked: string; readonly checkbox__disabled: string; readonly checkbox__input: string; readonly checkbox__inputMirror: string; readonly 'checkbox__inputMirror--active': string; readonly checkbox__icon: string; } declare type HTMLInputElementAttributesExceptOnChange = Omit, 'onChange'>; export interface CheckBoxProps extends HTMLInputElementAttributesExceptOnChange { /** * This prop controls the visual active state of the CheckBox. */ readonly isChecked: boolean; /** * This prop controls if the CheckBox is disabled or not. */ readonly disabled?: boolean; /** * An optional `className` to attach to the wrapper. */ readonly className?: string; /** * An optional change handler which gets called once the user clicks on the CheckBox. */ readonly onChange?: (isChecked: boolean) => void; /** * An optional css theme to be injected. */ readonly theme?: CheckBoxTheme; } declare class CheckBox extends PureComponent { render(): JSX.Element; private readonly handleChange; } export default CheckBox;