/** * Hook to observe elements when they are intersecting with the viewport * * @returns - API to observer and unobserve elements */ export default function useIntersectionObserver(): { observe: (element: Element, callback: Function) => void; unobserve: (element: Element) => void; };