import * as React from 'react';

export declare interface TopScrollListProps<T> {
  itemHeight?: number; // 用于计算滚动条的高度
  data?: Array<T>;
  loadMore?: () => void; //加载更多的方法，次方法应该修改props.data
  renderItem?: (item: T, index: number) => React.ReactNode;
  rowClass?: string;
  threshold?: number;
  itemClass?: string;
  itemGrid?: object;
  gutter?: number;
  hasLoadPrev?: boolean;
  hasLoadMore?: boolean;
  loadPrev?: func;
  prethreshold?: number;
  isNoData?: boolean;
  className?: string;
  toppingConfig?: {
    headerComponent:? React.ReactNode;
    headerHeight: ?number;
    toppingComponent: React.ReactNode;
    toppingHeight: number;
  };
}

declare const TopScrollList: React.StatelessComponent<TopScrollListProps<T>>;

export default TopScrollList;
