/// <reference types="react" />
export type UseScrollVisibleProps = {
    /**
     * 滚动到顶部/底部的目标元素
     * @default () => window
     */
    target: () => HTMLElement | Window;
    /**
     * 是否显示
     */
    shouldVisible: (scrollTop: number, target: HTMLElement | Window) => boolean;
};
export declare const useScrollVisible: ({ target, shouldVisible, }: UseScrollVisibleProps) => {
    visible: boolean;
    currentContainer: import("react").MutableRefObject<HTMLElement | Window>;
};
