import * as React from 'react'; import { SlotComponentProps } from '@mui/base'; import { ExtendSliderUnstyledTypeMap } from '@mui/base/SliderUnstyled'; import { OverridableStringUnion, OverrideProps } from '@mui/types'; 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 SliderSlot = "root" | "mark" | "markLabel" | "rail" | "track" | "thumb" | "valueLabel" | "input"; interface SliderPropsVariantOverrides { } interface SliderPropsColorOverrides { } interface SliderPropsSizeOverrides { } interface SliderOwnProps { /** * The props used for each slot inside the Slider. * @default {} */ componentsProps?: { root?: SlotComponentProps<"span", { sx?: SxProps; }, SliderOwnerState>; track?: SlotComponentProps<"span", { sx?: SxProps; }, SliderOwnerState>; rail?: SlotComponentProps<"span", { sx?: SxProps; }, SliderOwnerState>; thumb?: SlotComponentProps<"span", { sx?: SxProps; }, SliderOwnerState>; mark?: SlotComponentProps<"span", { sx?: SxProps; }, SliderOwnerState>; markLabel?: SlotComponentProps<"span", { sx?: SxProps; }, SliderOwnerState>; valueLabel?: SlotComponentProps<"span", { sx?: SxProps; }, SliderOwnerState>; input?: SlotComponentProps<"input", { sx?: SxProps; }, SliderOwnerState>; }; /** * The color of the component. It supports those theme colors that make sense for this component. * @default 'primary' */ color?: OverridableStringUnion; /** * The size of the component. * It accepts theme values between 'sm' and 'lg'. * @default 'md' */ size?: OverridableStringUnion<"sm" | "md" | "lg", SliderPropsSizeOverrides>; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps; /** * The variant to use. * @default 'solid' */ variant?: OverridableStringUnion; } declare type SliderTypeMap = ExtendSliderUnstyledTypeMap<{ props: P & SliderOwnProps; defaultComponent: D; }>; declare type SliderProps = OverrideProps, D>; interface SliderOwnerState extends SliderProps { /** * If `true`, the thumb is in dragging state. */ dragging: boolean; /** * If `true`, some of the marks has `label` property. */ marked: boolean; } export { SliderOwnProps, SliderOwnerState, SliderProps, SliderPropsColorOverrides, SliderPropsSizeOverrides, SliderPropsVariantOverrides, SliderSlot, SliderTypeMap };