import { RefObject } from 'react'; /** * Hook to capture the hovering state of a ref'd HTMLElement * * Note: if the ref is pointed at a new element, isHovered will be the last hoverState of the previous element * until a mouseenter/leave event happens on the new element * * @returns [isHovered, elementRef] */ declare function useIsHovered(): readonly [boolean | undefined, RefObject]; export default useIsHovered;