import * as React from 'react'; import { OverridableStringUnion, OverrideProps } from '@mui/types'; import { UseSwitchParameters } from '@mui/base/SwitchUnstyled'; import { ColorPaletteProp } from '../styles/types/colorSystem.js'; import { VariantProp } from '../styles/types/variants.js'; import { SxProps } from '../styles/types/theme.js'; import '@mui/system'; import '../styles/types/colorScheme.js'; import '../styles/types/focus.js'; import '../styles/types/shadow.js'; import '../styles/types/radius.js'; import '../styles/types/typography.js'; declare type SwitchSlot = "root" | "action" | "input" | "track" | "thumb"; interface SwitchPropsVariantOverrides { } interface SwitchPropsColorOverrides { } interface SwitchPropsSizeOverrides { } interface ComponentsProps { root?: SlotComponentProps<"div", { sx?: SxProps; }, SwitchOwnerState>; thumb?: SlotComponentProps<"span", { sx?: SxProps; }, SwitchOwnerState>; action?: SlotComponentProps<"div", { sx?: SxProps; }, SwitchOwnerState>; input?: SlotComponentProps<"button", { sx?: SxProps; }, SwitchOwnerState>; track?: SlotComponentProps<"span", { sx?: SxProps; }, SwitchOwnerState>; startDecorator?: SlotComponentProps<"span", { sx?: SxProps; }, SwitchOwnerState>; endDecorator?: SlotComponentProps<"span", { sx?: SxProps; }, SwitchOwnerState>; } interface SwitchTypeMap

{ props: P & UseSwitchParameters & { /** * The color of the component. It supports those theme colors that make sense for this component. * @default 'neutral' */ color?: OverridableStringUnion; /** * The props used for each slot inside the component. * @default {} */ componentsProps?: ComponentsProps; /** * The element that appears at the end of the switch. */ endDecorator?: React.ReactNode | ((ownerState: SwitchOwnerState) => React.ReactNode); /** * The size of the component. * @default 'md' */ size?: OverridableStringUnion<"sm" | "md" | "lg", SwitchPropsSizeOverrides>; /** * The element that appears at the end of the switch. */ startDecorator?: React.ReactNode | ((ownerState: SwitchOwnerState) => React.ReactNode); /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps; /** * The variant to use. * @default 'solid' */ variant?: OverridableStringUnion; }; defaultComponent: D; } declare type SwitchProps = OverrideProps, D>; interface SwitchOwnerState extends SwitchProps { /** * If `true`, the switch's focus is visible. */ focusVisible?: boolean; } export { SwitchOwnerState, SwitchProps, SwitchPropsColorOverrides, SwitchPropsSizeOverrides, SwitchPropsVariantOverrides, SwitchSlot, SwitchTypeMap };