import { RefObject } from 'react'; import { InternalSelectionType, TableProps } from './interfaces'; interface TableFocusNavigationProps { enableKeyboardNavigation?: boolean; selectionType: undefined | InternalSelectionType; tableRoot: RefObject; columnDefinitions: Readonly; numRows: number; } /** * This hook is used to navigate between table cells using the keyboard arrow keys. * All the functionality is implemented in the hook, so the table component does not * need to implement any keyboard event handlers. * @param enable - Toggle functionality of the hook * @param tableRoot - A ref to a table container. Ideally the root element of the table (); tbody is also acceptable. * @param columnDefinitions - The column definitions for the table. * @param numRows - The number of rows in the table. */ declare function useTableFocusNavigation; }>({ enableKeyboardNavigation, selectionType, tableRoot, columnDefinitions, numRows }: TableFocusNavigationProps): void; export default useTableFocusNavigation;