/**
License
Copyright 2022 Beijing Volcano Engine Technology Ltd. All Rights Reserved.
The @volcengine/imagex-react was developed by Copyright 2022 Beijing Volcano Engine
Technology Ltd. (hereinafter “Volcano Engine”). Any copyright or patent right is owned by and
proprietary material of the Volcano Engine.
@volcengine/imagex-react is available under the Volcano Engine veImageX and licensed under the
commercial license. Customers can contact service@volcengine.com for commercial licensing
options. Here is also a link to subscription services agreement:
https://www.volcengine.com/docs/508/66427 .
Without Volcano Engine's prior written permission, any use of @volcengine/imagex-react, in particular any use for commercial purposes, is prohibited. This includes, without limitation, incorporation in a commercial product, use in a commercial service, or production of other artefacts for commercial purposes.
Without Volcano Engine's prior written permission, the @volcengine/imagex-react may not be
reproduced, modified and/or made available in any form to any third party.
*/
///
type UseIntersectionObserverInit = Pick;
type UseIntersection = {
disabled?: boolean;
} & UseIntersectionObserverInit & {
rootRef?: React.RefObject | null;
};
/**
*
* @param {UseIntersection} param
* @param {React.RefObject | null} param.rootRef 根元素ref,即目标元素所在容器节点
* @param {string | undefined} param.rootMargin 根元素margin
* @param {boolean | undefined} param.disable 是否禁用懒加载
*/
declare const useIntersection: ({ rootRef, rootMargin, disabled, }: UseIntersection) => [(element: T | null) => void, boolean, () => void];
export default useIntersection;