import type { UseIntersectionObserverOptions } from "../use-intersection-observer/index.js"; import type { ElementTarget } from "../use-target-element/index.js"; export interface UseElementVisibilityOptions extends Pick { /** * The root passed to the IntersectionObserver */ scrollTarget?: ElementTarget; /** * A callback function that will be called when the visibility of the target element changes */ onChange?: (visibility: boolean) => void; } /** * A React Hook that allows you to check if an element is visible in the viewport. */ export declare function useElementVisibility(target: ElementTarget, options?: UseElementVisibilityOptions): boolean;