// @flow type Dispatch = (args: S) => void; type SetAction = S | ((prevState: S) => S); export type useIntersect = ( intersect?: IntersectionObserverOptions, ) => {| ref: Dispatch> | null, entry: IntersectionObserverEntry | null |}; declare export default useIntersect;