import type { MutableRefObject } from "react";
interface ListKeyboardNavigationInput<T, R> {
    ref?: MutableRefObject<R | null>;
    list: T[];
    onEnter: (item: T) => void;
    resetOnListChange?: boolean;
}
export declare const useListKeyboardNavigation: <T, R extends HTMLElement = HTMLElement>({ ref, list, onEnter, resetOnListChange, }: ListKeyboardNavigationInput<T, R>) => {
    reset: () => void;
    cursorIndex: number | null;
    selectedItem: T | null;
    getRef: (item: T) => MutableRefObject<R | null> | undefined;
};
export {};
