import type React from 'react'; import { type KeyboardEventHandler } from 'react'; type Options = { /** * Callback when the key is pressed on the container. * This is called before the focus trap logic, useful when you need to handle some key events before the focus trap. */ onKeyDown?: KeyboardEventHandler; /** * Callback when the Tab key is pressed on a not-focusable element. * Usually used when you need to handle Focus Trap with elements which are focused manually by arrow keys or mouse clicks; * * @param event - The keyboard event. */ onPressingTabOnNotFocusableElement?: (event: React.KeyboardEvent) => void; }; /** * Hook to trap focus within a container. * * @param options - The options for the focus trap. * * @returns The props for the focus trap. */ export declare function useFocusTrap({ onKeyDown, onPressingTabOnNotFocusableElement }?: Options): { handleOnKeyDown: React.KeyboardEventHandler; }; export {};