import React, { PropsWithChildren, ReactHTML } from 'react';
import { DefaultAttributes } from '../types';
declare type Axis = 'x' | 'y';
export declare type InfiniteScrollProps = DefaultAttributes & PropsWithChildren<{
element: keyof ReactHTML;
threshold: number | Record;
loadMore(): void;
hasMore?: boolean;
axis: Axis;
loader?: JSX.Element;
}>;
/**
* @deprecated This component is deprecated and will be removed in the future major release. Please consider using an alternative solution for infinite scrolling.
*
* Component to handle infinite scrolling of paginated data sets. This component is built to work
* with both x (horizontal) and y (vertical) directions.
*
* If migrating from using `react-infinite-scroller`, all shared props should hold the same value.
*
*/
export declare function InfiniteScroll({ element, loadMore, children, hasMore, threshold, axis, loader, ...defaultProps }: InfiniteScrollProps): React.DetailedReactHTMLElement<{
ref: React.RefObject;
onScroll: {
(e: Event): void;
(e: React.UIEvent): void;
};
"data-testid"?: string | undefined;
"data-trackid"?: string | undefined;
"aria-label"?: string | undefined;
"aria-checked"?: boolean | undefined;
id?: string | undefined;
}, HTMLElement>;
export {};