import * as React from 'react';

export declare interface ScrollListProps<T> {
  itemHeight?: number; // 用于计算滚动条的高度
  data?: Array<T>;
  loadMore?: () => Promise<null>; //加载更多的方法，次方法应该修改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
}

declare const ScrollList: React.StatelessComponent<ScrollListProps<T>>;

export default ScrollList;
