import type { LegacyRef } from "react";
export interface UseInfiniteScrollOptions {
	/**
	* Callback to call when new items should be loaded.
	*/
	callback: () => void;
	/**
	* The current count of the number of loaded items in the infinite scroll. This is used to
	* detect changes when the height of the container is large and can hold multiple initial
	* loaded pages without making the target element scroll out of the viewport.
	*/
	loadedCount: number;
}
/**
* This hooks handles the logic of triggering a callback when the user reaches the target element (e.g. spinner).
* It returns a callback that must be set as the ref of the target element at the bottom of the
* scroll container.
*/
export declare function useInfiniteScroll({ callback, loadedCount }: UseInfiniteScrollOptions): LegacyRef<HTMLDivElement>;
