/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import React from 'react'; export interface InfiniteScrollerProps { loadMore: (page: number) => void; element?: 'string'; hasMore?: boolean; initialLoad?: boolean; isReverse?: boolean; isError?: boolean; isLoading?: boolean; loader?: React.ReactNode; pageStart?: number; getScrollParent?: () => Element | null; getScrollElement?: () => Element | null; threshold?: number; useCapture?: boolean; useWindow?: boolean; loadingText?: React.ReactNode; endText?: React.ReactNode; errorText?: React.ReactNode; retryLoadText?: React.ReactNode; textBoxStyle?: React.CSSProperties; } declare class InfiniteScroller extends React.Component { _page: number; constructor(props: InfiniteScrollerProps); retryLoad: () => void; handleInfiniteOnLoad: (page: number) => void; render(): JSX.Element; } export default InfiniteScroller;