import type { RefObject, MouseEvent, KeyboardEvent } from 'react'; export type UseListControlsProps = { listRef: RefObject; selectors?: string; onElementChange?: (currentElement: ElementType) => void; }; export type UserDevice = 'keyboard' | 'mouse'; export type ListControlsState = { device: UserDevice | null; currentElement: ElementType | null; }; export declare const useListControls: ({ listRef, selectors, onElementChange, }: UseListControlsProps) => { device: UserDevice | null; currentElement: ElementType | null; onKeyDown: (event: KeyboardEvent) => void; onMouseMove: (event: MouseEvent) => void; onMouseLeave: () => void; resetListState: () => void; setListState: import("react").Dispatch>>; };