type UseKeyboardNavigationArgs = {
    itemsLength: number;
    onChange?: (n: number) => void;
};
export declare const useKeyboardNavigation: ({ itemsLength, onChange, }: UseKeyboardNavigationArgs) => {
    setRef: (index: number) => <RefType extends HTMLElement>(ref: RefType | null) => void;
    onKeyDown: (e: React.KeyboardEvent) => void;
};
export {};
