import { type KeyboardEvent } from 'react'; export interface SelectOnArrow { /** Put on the Radix `RadioGroup.Root`, after any consumer `onKeyDown`. */ onKeyDown: (event: KeyboardEvent) => void; /** Call first thing in the Root's `onValueChange`. */ noteSelection: () => void; } /** * Arrow keys move focus AND selection in a Radix radio group (WAI-ARIA radio * pattern). Radix selects only if the next radio takes focus while the arrow * key is still down: it moves focus in a timeout and forgets the key on * `keyup`. A quick tap, a script or an assistive technology can release the * key before that timeout runs, and focus then moves without selecting. * * This finishes the move: its own timeout runs after Radix's and clicks the * newly focused radio, as Radix would have. `noteSelection` tells it Radix * already selected, so each move fires `onValueChange` once. */ export declare function useSelectOnArrow(): SelectOnArrow; //# sourceMappingURL=use-select-on-arrow.d.ts.map