import React from 'react'; import { SpinProps } from '../Spin'; import { PaginationConfig } from '../Pagination'; import Item from './Item'; import { LocaleProperties } from '../Locale'; import './style/index.less'; export { ListItemProps, ListItemMetaProps } from './Item'; export declare type ColumnCount = 1 | 2 | 3 | 4 | 6 | 8 | 12 | 24; export declare type ColumnType = 'gutter' | 'column' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; export interface ListGridType { gutter?: number; column?: ColumnCount; xs?: ColumnCount; sm?: ColumnCount; md?: ColumnCount; lg?: ColumnCount; xl?: ColumnCount; xxl?: ColumnCount; } export declare type ListSize = 'small' | 'default' | 'large'; export interface ListProps { bordered?: boolean; className?: string; children?: React.ReactNode; dataSource: any; extra?: React.ReactNode; grid?: ListGridType; id?: string; itemLayout?: string; loading?: boolean | SpinProps; loadMore?: React.ReactNode; pagination?: PaginationConfig; prefixCls?: string; rowKey?: any; renderItem: any; size?: ListSize; split?: boolean; header?: React.ReactNode; footer?: React.ReactNode; locale?: LocaleProperties['List']; striped?: Boolean; } declare class List extends React.Component { static Item: typeof Item; static Sortable: { new (props: import("./sortable/SortableComposition").InterProps | Readonly): { sortEnd: (e: any) => void; sortStart: (e: any) => void; dragOver: (e: any) => void; render(): JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void; forceUpdate(callback?: () => void): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; }; new (props: import("./sortable/SortableComposition").InterProps, context: any): { sortEnd: (e: any) => void; sortStart: (e: any) => void; dragOver: (e: any) => void; render(): JSX.Element; context: any; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void; forceUpdate(callback?: () => void): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; }; defaultProps: { moveInMiddle: boolean; }; contextType?: React.Context; }; static defaultProps: { dataSource: any[]; prefixCls: string; bordered: boolean; split: boolean; loading: boolean; pagination: boolean; striped: boolean; }; state: { paginationCurrent: number; }; defaultPaginationProps: { current: number; pageSize: number; onChange: (page: number, pageSize: number) => void; total: number; }; private keys; renderItem: (item: React.ReactElement, index: number) => any; isSomethingAfterLastItem(): boolean; renderEmpty: (Locale: LocaleProperties['List']) => JSX.Element; render(): JSX.Element; } export default List;