import { AbstractInputProps } from "../../input"; import { ChangeEvent, ChangeEventHandler, ComponentProps, ReactNode } from "react"; import { OmitInternalProps } from "../../shared"; import { ResponsiveProp } from "../../styling"; declare const DefaultElement = "label"; export interface InnerSwitchProps extends Omit, "onChange"> { /** * A controlled checked state value. */ checked?: boolean | null; /** * React children. */ children?: ReactNode; /** * The initial value of `checked` when uncontrolled. */ defaultChecked?: boolean; /** * @ignore */ disabled?: boolean; /** * @ignore */ name?: string; /** * Called when the switch checked state change. * @param {ChangeEvent} event - React's original synthetic event. * @returns {void} */ onChange?: ChangeEventHandler; /** * Called when the switch 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">; } export declare function InnerSwitch(props: InnerSwitchProps): JSX.Element; export declare namespace InnerSwitch { var defaultElement: string; } /** * A switch offers an on or off choice to a user. * * [Documentation](https://orbit.sharegate.design/?path=/docs/switch--default-story) */ export declare const Switch: import("react").ForwardRefExoticComponent, "ref"> & import("react").RefAttributes>; export declare type SwitchProps = ComponentProps; export {};