/// interface Options { /** * Boolean if the focus wrap behavior should be disabled. */ disabled?: boolean; /** * Boolean if the list of focusable elements should not be cached after the * first tab key press. This should only be set to `true` if you have a lot of * dynamic content whin your element and the first and last elements change. */ disableFocusCache?: boolean; /** * An optional keydown event handler to merge with the focus wrap behavior. */ onKeyDown?: React.KeyboardEventHandler; } /** * Creates an `onKeyDown` event handler to trap keyboard focus within a * container element. * * @typeparam E The HTMLElement type that has the keydown event listener * attached. * @param options All the options for handling tab focus wrapping. * @return The kedown event handler to enforce focus wrapping or the onKeyDown * prop if this functionality is disabled. */ export default function useTabFocusWrap({ disabled, disableFocusCache, onKeyDown, }: Options): React.KeyboardEventHandler | undefined; export {};