import { type MutableRefObject } from 'react'; /** * @internal * Provides the focus behavior for overlays located at the end of the DOM when navigating via keyboard. * By using the Ctrl/Cmd + F6 shortcut Focus is moved to the referenced close button. * If the overlay is closed via the keyboard, focus will be handled accordingly. * In case a container was passed and it contains focusable elements, focus will be moved to the first focusable element within that (necessary for the ToastContainer). * Otherwise, the focus will be moved back to the previously focused element when focused via the shortcut, or the last element in the document. * * @param closeButtonRef - the respective close button of the targeted overlay * @param containerRef - the container around the close button where the focus should remain if possible * @returns function for handling the focus and the state update function for storing whether the overlay was closed on keydown */ export declare function useKeyboardFocusHandling(closeButtonRef: MutableRefObject, containerRef?: MutableRefObject): [() => void, MutableRefObject];