import type { RefObject } from 'react'; /** Hook for properly handling focus state of children components. * @example const hasFocus = useFocusWithin([containerRef, ...], (isFocused, element) => { doSomething; }); * @param onFocusChange Callback function that is invoked with the current focus state and the current element when any child elements takes focus or all of them lose focus. * @returns * hasFocus:: A boolean indicating if the ref element has focus or not. */ declare const useFocusWithin: (els: (T | null | RefObject)[], onFocusChange?: (isFocused: boolean, element: T | Element | null) => void) => boolean; export default useFocusWithin; //# sourceMappingURL=useFocusWithin.d.ts.map