import type * as React from 'react'; import type { FormValidityHandle } from '../utils/formControl.cjs'; import type { SwitchContextValue, SwitchProps } from './types.cjs'; export declare const SwitchProvider: React.FC, useSwitchContext: (consumerName: string) => SwitchContextValue; /** * A boolean on/off switch button, rendering `role="switch"` and a hidden `` when `name` is set; unlike a checkbox it has no indeterminate state and toggles on Enter as well as Space. * * @example * ```tsx * * * Notifications * * ``` */ export declare const Switch: { ({ checked: checkedProp, defaultChecked, onCheckedChange, required, name, value, disabled, readOnly, invalid, form, label, labelPosition, size, children, ref: forwardedRef, ...props }: Omit & { ref?: React.Ref | undefined; }): React.ReactNode; displayName: string; };