import { default as React } from 'react'; /** * Configuration for slider keyboard navigation. * * @category Hooks */ export interface UseSliderKeysOptions { /** Current value. */ value: number; /** Minimum value. */ min: number; /** Maximum value. */ max: number; /** Step applied by arrow keys. */ step: number; /** Disables interaction. */ disabled?: boolean; /** Prevents value changes. */ readOnly?: boolean; /** Called when value changes. */ onChange: (value: number) => void; } /** * Provides keyboard navigation for slider-like controls. * * Supports Arrow, Home and End keys to change the value. * * @param options Slider keyboard configuration. * * @returns Object containing onKeyDown handler. * * @example * const keys = useSliderKeys({ value, min: 0, max: 5, step: 0.5, onChange }); * *
* * @category Hooks */ export declare function useSliderKeys({ value, min, max, step, disabled, readOnly, onChange }: UseSliderKeysOptions): { onKeyDown: (e: React.KeyboardEvent