import * as React from 'react';
import type { AnchorUIComponentProps } from '../../utils/types.js';
import type { FieldRoot } from '../../field/root/FieldRoot.js';
import { useSliderRoot } from './useSliderRoot.js';
/**
* Groups all parts of the slider.
* Renders a `
` element.
*
* Documentation: [Anchor UI Slider](https://anchorui.com/react/components/slider)
*/
declare const SliderRoot: React.ForwardRefExoticComponent
>;
export declare namespace SliderRoot {
interface State extends FieldRoot.State {
/**
* The index of the active thumb.
*/
activeThumbIndex: number;
/**
* Whether the component should ignore user interaction.
*/
disabled: boolean;
/**
* Whether the thumb is currently being dragged.
*/
dragging: boolean;
max: number;
min: number;
/**
* The minimum steps between values in a range slider.
* @default 0
*/
minStepsBetweenValues: number;
/**
* The component orientation.
*/
orientation: useSliderRoot.Orientation;
/**
* The step increment of the slider when incrementing or decrementing. It will snap
* to multiples of this value. Decimal values are supported.
* @default 1
*/
step: number;
/**
* The raw number value of the slider.
*/
values: readonly number[];
}
interface Props extends Partial>, Omit, 'defaultValue' | 'onChange' | 'values'> {
/**
* The uncontrolled value of the slider when it’s initially rendered.
*
* To render a controlled slider, use the `value` prop instead.
*/
defaultValue?: number | readonly number[];
/**
* Whether the component should ignore user interaction.
* @default false
*/
disabled?: boolean;
/**
* Options to format the input value.
*/
format?: Intl.NumberFormatOptions;
/**
* Optional tab index attribute for the thumb components.
*/
tabIndex?: number;
/**
* The value of the slider.
* For ranged sliders, provide an array with two values.
*/
value?: number | readonly number[];
}
}
export { SliderRoot };