import type { CSSProperties, ElementType, ReactNode, RefObject } from 'react'; type InfiniteScrollProps = { className?: string; 'data-testid'?: string; /** * Function to be called when the user scrolls to the bottom of the stack. If not set the component will passby the children and nothing else. */ onLoadMore: () => void | Promise; /** * Set this parameter if you want a different scroll listener if the scroll parent is wrongly detected. */ scrollParentRef?: RefObject | RefObject; /** * The height of the InfiniteScroll component. This can be used to leave space between items and the InfiniteScroll component. */ height?: number | string; /** * Use this prop to replace the default loader with a custom one. */ loader?: ReactNode; id?: string; /** * The element type to render as the container for the InfiniteScroll component. */ as?: ElementType; hasMore?: boolean; /** * The distance from the bottom of the scrollable container where the `onLoadMore` function will be called. */ heightThreshold?: number; style?: CSSProperties; }; export declare function InfiniteScroll({ className, 'data-testid': dataTestId, onLoadMore, scrollParentRef, height, loader, id, as: Component, hasMore, heightThreshold, style, }: InfiniteScrollProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable | Promise | import("react").ReactElement> | import("react").ReactPortal | null | undefined>; export declare namespace InfiniteScroll { var displayName: string; } export {}; //# sourceMappingURL=index.d.ts.map