export interface UseStepRepeatResult { /** Fires one step immediately, then starts the hold-to-repeat timer. */ start: (direction: 1 | -1, multiplier: number) => void; /** Cancels a running repeat. Safe to call when nothing is running. */ stop: () => void; } /** * Hold-to-repeat for the stepper buttons: one step on press, then an accelerating repeat. * * The release is watched on `window` rather than by capturing the pointer, which would retarget * the following click past the node Button's ripple listens on. Capture would have guaranteed a * `pointerup`, so the extra listeners cover the ways a press can end without one. * * `onStep` returns whether anything changed; `false` ends the repeat, so a hold at a bound stops. */ export declare function useStepRepeat(onStep: (delta: number) => boolean): UseStepRepeatResult; export default useStepRepeat;