import { AbstractInputProps } from "../../input"; import { ChangeEvent, ChangeEventHandler, ComponentProps } from "react"; import { OmitInternalProps } from "../../shared"; import { ResponsiveProp } from "../../styling"; declare const DefaultElement = "label"; export interface InnerCheckboxProps extends Omit, "onChange"> { /** * A controlled checked state value. */ checked?: boolean | null; /** * The initial value of `checked` when uncontrolled. */ defaultChecked?: boolean; /** * The initial value of `indeterminate`. */ defaultIndeterminate?: boolean; /** * @ignore */ disabled?: boolean; /** * A controlled indeterminate state value. */ indeterminate?: boolean | null; /** * @ignore */ name?: string; /** * Called when the checkbox checked state change. * @param {ChangeEvent} event - React's original synthetic event. * @returns {void} */ onChange?: ChangeEventHandler; /** * Called when the checkbox checked state change. * @param {ChangeEvent} event - React's original synthetic event. * @param {boolean} isChecked - Whether or not the input is checked. * @returns {void} */ onValueChange?: (event: ChangeEvent, isChecked: boolean) => void; /** * Invert the order the checkmark box and the label. */ reverse?: boolean; /** * A checkbox can vary in size. */ size?: ResponsiveProp<"sm" | "md">; /** * The value to associate with when in a group. */ value?: string; } export declare function InnerCheckbox(props: InnerCheckboxProps): JSX.Element; export declare namespace InnerCheckbox { var defaultElement: string; } /** * A checkbox allows the user to toggle between 2 or 3 (indeterminate) choices. * * [Documentation](https://orbit.sharegate.design/?path=/docs/checkbox--default-story) */ export declare const Checkbox: import("react").ForwardRefExoticComponent, "ref"> & import("react").RefAttributes>; export declare type CheckboxProps = ComponentProps; export {};