securityos/node_modules/next/dist/client/use-intersection.d.ts

10 lines
437 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
/// <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 {};