import { MutableRefObject } from 'react'; /** * The useIsVisibleElement function is a React hook that returns whether an element is visible in the viewport. * @example const isInViewPort = useIsVisibleElement(ref) * * @param element MutableRefObject<Element | null | undefined; Pass the ref of the element we want to observe * @param rootMargin Adjust the root element * * @return A boolean value that indicates if the element is visible * */ export declare const useIsVisibleElement: (element: MutableRefObject, rootMargin?: number) => boolean;