import * as react from 'react'; import { ReactNode, ChangeEventHandler, ChangeEvent, ComponentProps } from 'react'; import * as react_jsx_runtime from 'react/jsx-runtime'; import { ResponsiveProp } from '../../styling/src/useResponsiveValue.js'; import { OmitInternalProps } from '../../shared/src/types.js'; import { AbstractInputProps } from '../../input/src/types.js'; import '../../styling/src/BreakpointProvider.js'; import '../../styling/src/styled-system/props-handler.js'; import 'csstype'; import '../../shared/src/type-fest.js'; import '../../styling/src/styled-system/StylingContext.js'; import '../../group/src/Group.js'; import '../../layout/src/Flex.js'; declare const DefaultElement = "label"; 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">; } declare function InnerSwitch(props: InnerSwitchProps): react_jsx_runtime.JSX.Element; declare namespace InnerSwitch { var defaultElement: string; } /** * A switch offers an on or off choice to a user. * * [Documentation](https://wl-orbiter-website.netlify.app/?path=/docs/switch--default-story) */ declare const Switch: react.ForwardRefExoticComponent, "ref"> & react.RefAttributes>; type SwitchProps = ComponentProps; export { InnerSwitch, type InnerSwitchProps, Switch, type SwitchProps };