import { type ChangeEvent } from 'react'; import type { BehaviorTrackingProps } from '../../core/types/behavior-tracking-props.js'; import { DataTestId } from '../../core/types/data-props.js'; import type { FormControlProps } from '../../core/types/form-control-props.js'; import { MaskingProps } from '../../core/types/masking-props.js'; import { StylingProps } from '../../core/types/styling-props.js'; import { WithChildren } from '../../core/types/with-children.js'; import type { FormControlRef } from '../shared-types.js'; import type { MessageTarget } from '../validation/message-routing.js'; /** * @public */ export type SwitchProps = FormControlProps) => void | never, HTMLDivElement> & StylingProps & DataTestId & MaskingProps & BehaviorTrackingProps & WithChildren & { /** * Internal: associates this control with a `_Form` rendered outside its * React subtree via the native `form` attribute. Unstable. * @internal */ _form?: string; /** * Internal: routes this control's native/Strato validation messages to the * field outlet (default), the enclosing form's outlet, or both. Unstable. * @internal */ _messageTarget?: MessageTarget | MessageTarget[]; /** The string used as the value of the switch when submitting it in a form, if the switch is toggled on. */ formValue?: string; }; /** * Use the `Switch` to let users toggle a setting between on and off. The change takes effect immediately without requiring a separate confirmation step. * @public */ export declare const Switch: (props: SwitchProps & import("react").RefAttributes>) => import("react").ReactElement | null; //# sourceMappingURL=Switch.d.ts.map