import { type ChangeEvent } from 'react'; import { type DataTestId, type MaskingProps, type StylingProps, type WithChildren } from '@dynatrace/strato-components/core'; import type { FormControlProps } from '../../core/types/form-control-props.js'; import type { FormControlRef } from '../shared-types.js'; /** * @public */ export type SwitchProps = FormControlProps) => void | never> & StylingProps & DataTestId & MaskingProps & WithChildren & { /** The string used as the value of the switch when submitting it in a form, if the switch is toggled on. */ formValue?: string; }; /** * The `Switch` component allows users to toggle between two different states. You can * set a specific initial value using the `defaultValue` prop for an uncontrolled switch * or setting the initial value of the state of a controlled switch accordingly. The `name` prop also * needs to be specified for identifying the `Switch` when submitting it in a form. * @public */ export declare const Switch: (props: SwitchProps & import("react").RefAttributes>) => React.ReactElement | null;