///
///
import { MoveIndexInTwoDimensionalOptions } from './moveIndexInTwoDimension';
export declare type UseKeyboardMoveFocusParams = {
/** current focused index `ref` */
focusedIndexRef: React.MutableRefObject;
/** action when index change */
onFocusedIndexChange: (event: React.KeyboardEvent, index: number) => void;
/** children items */
options: T[];
/** column number with that move block, default is `1` */
columns?: number;
/**
* Used to determine the disabled state for a given option.
*
* @param {T} option The option to test.
* @returns {boolean}
*/
getOptionDisabled?: (option: T) => boolean;
/**
* Used to get option text for search focus by other text.
*
* @param {T} option
* @returns {string} that string for search
*/
getOptionSearchText?: (option: T) => string;
/**
* when typing search text, end this search debounce time
*
* @default 500
*/
endSearchDebounceTime?: number;
} & Pick;
/**
* use keyboard move index in two dimensional
*/
export declare const useKeyboardMoveFocus: ({ infinite, options, focusedIndexRef, onFocusedIndexChange, getOptionDisabled, getOptionSearchText, columns, endSearchDebounceTime, }: UseKeyboardMoveFocusParams) => {
/**
* Get previous focusable option(include current index).
*/
getPrevFocusableOption: (index?: number, isInfinite?: any) => number;
/**
* Get next focusable option(include current index).
*/
getNextFocusableOption: (index?: number, isInfinite?: any) => number;
/**
* Use to handle keyboard event.
*/
onKeyFocusedIndexHandle: (event: import("react").KeyboardEvent) => void;
};