export declare function useVisibility<T extends HTMLElement>(enabled: boolean, rootMargin?: string, root?: Element | null): {
    readonly ref: import('react').MutableRefObject<T | null>;
    readonly visible: boolean;
};
