import { default as React } from 'react'; interface InfiniteScrollProps extends React.HTMLAttributes { loadMore: () => Promise; hasMore: boolean; isLoading?: boolean; error?: string | null; onRetry?: () => void; threshold?: number; loader?: React.ReactNode; endMessage?: React.ReactNode; errorMessage?: React.ReactNode; className?: string; children: React.ReactNode; scrollableTarget?: string | HTMLElement; inverse?: boolean; endAnnouncement?: string; } declare function InfiniteScroll({ loadMore, hasMore, isLoading, error, onRetry, threshold, loader, endMessage, errorMessage, className, children, scrollableTarget, inverse, endAnnouncement, ...rest }: InfiniteScrollProps): React.JSX.Element; export { InfiniteScroll }; export type { InfiniteScrollProps };