bpms_site/.svn/pristine/35/354dc7c9a264739b9c5d7af93493ca58ccf2f75b.svn-base
2025-11-02 16:38:49 +03:30

10 lines
437 B
Plaintext

/// <reference types="react" />
type UseIntersectionObserverInit = Pick<IntersectionObserverInit, 'rootMargin' | 'root'>;
type UseIntersection = {
disabled?: boolean;
} & UseIntersectionObserverInit & {
rootRef?: React.RefObject<HTMLElement> | null;
};
export declare function useIntersection<T extends Element>({ rootRef, rootMargin, disabled, }: UseIntersection): [(element: T | null) => void, boolean, () => void];
export {};