import * as React from 'react'; import type { SemanticClassName } from "../_util/classNameUtils"; import type { GetRequestType } from "../_util/type"; import type { ScrollValues } from '../scrollbar'; import type { SpinProps } from '../spin'; import type { VirtualListRef } from '../virtual-list'; import type { ListItemProps } from './Item'; import Item from './Item'; export type { ListConsumerProps } from './context'; export type { ListItemMetaProps, ListItemProps } from './Item'; export type ListRef = Omit & { reload: () => void; setDataSource: (data: TData[] | ((oldData: TData[]) => TData[] | undefined)) => void; }; export type LazyLoadType = boolean | { direction?: 'top' | 'bottom'; pageSize?: number; }; export interface ListProps { bordered?: boolean; className?: SemanticClassName<{ body?: string; header?: string; footer?: string; item?: ListItemProps['className']; }, { bordered?: boolean; }>; style?: React.CSSProperties; dataSource?: T[]; id?: string; loading?: boolean | SpinProps; virtual?: boolean; prefixCls?: string; rowKey?: ((item: T) => React.Key) | keyof T; renderItem?: (item: T, index: number) => React.ReactNode; split?: boolean; header?: React.ReactNode; footer?: React.ReactNode; locale?: ListLocale; onScroll?: (values: ScrollValues, ev: React.UIEvent) => void; followOutput?: boolean; atEdgeThreshold?: number; alignToBottom?: boolean; lazyLoad?: R; request?: GetRequestType; } export interface ListLocale { emptyText?: React.ReactNode; noMoreText?: React.ReactNode; } declare function InternalList({ prefixCls: customizePrefixCls, bordered, split, className, style, dataSource, header, footer, loading, rowKey, renderItem, locale, request, lazyLoad, virtual, onScroll, followOutput, atEdgeThreshold, alignToBottom, ...rest }: ListProps, ref: React.ForwardedRef>): React.JSX.Element; declare const ListWithForwardRef: ((props: ListProps & { ref?: React.ForwardedRef> | undefined; }) => ReturnType) & Pick, "displayName">; type CompoundedComponent = typeof ListWithForwardRef & { Item: typeof Item; }; declare const List: CompoundedComponent; export default List;