import type { ForwardRefComponent } from '@fluentui/react-utilities'; import type * as React_2 from 'react'; import { renderSwitch_unstable as renderSwitch } from '@fluentui/react-switch'; import type { SwitchBaseProps } from '@fluentui/react-switch'; import type { SwitchBaseState } from '@fluentui/react-switch'; import type { SwitchSlots as SwitchSlots_2 } from '@fluentui/react-switch'; export { renderSwitch } /** * A switch component for toggling values. */ export declare const Switch: ForwardRefComponent; /** * Switch component props */ export declare type SwitchProps = SwitchBaseProps; /** * Switch component slots */ export declare type SwitchSlots = SwitchSlots_2; /** * Switch component state */ export declare type SwitchState = SwitchBaseState & { root: { /** * Data attribute set when the switch is disabled. */ 'data-disabled'?: string; /** * Data attribute set when the switch is disabled but still focusable. */ 'data-disabled-focusable'?: string; /** * Data attribute set when the switch is checked (controlled mode only). */ 'data-checked'?: string; /** * Data attribute reflecting the label position. */ 'data-label-position'?: SwitchBaseState['labelPosition']; }; }; /** * Returns the state for a Switch component, given its props and ref. * The returned state can be modified with hooks before being passed to `renderSwitch`. */ export declare const useSwitch: (props: SwitchProps, ref: React_2.Ref) => SwitchState; export { }