import React from 'react'; import type { ListProps, TableProps } from 'infrad'; import type { GetRowKey } from 'infrad/lib/table/interface'; import type { ActionType } from 'infrad-pro-table'; import type { GetComponentProps } from './index'; import type { ItemProps } from './Item'; import type { ProCardProps } from 'infrad-pro-card'; declare type AntdListProps = Omit, 'rowKey'>; export declare type ListViewProps = Omit, 'renderItem'> & Pick, 'columns' | 'dataSource' | 'expandable'> & { rowKey?: string | GetRowKey; showActions?: 'hover' | 'always'; showExtra?: 'hover' | 'always'; rowSelection?: TableProps['rowSelection']; prefixCls?: string; dataSource: readonly RecordType[]; renderItem?: (item: RecordType, index: number, defaultDom: JSX.Element) => React.ReactNode; actionRef: React.MutableRefObject; onRow?: GetComponentProps; onItem?: GetComponentProps; rowClassName?: string | ((item: RecordType, index: number) => string); /** Render 除了 header 之后的代码 */ itemHeaderRender?: ItemProps['itemHeaderRender']; itemTitleRender?: ItemProps['itemTitleRender']; itemCardProps?: ProCardProps; }; declare function ListView(props: ListViewProps): JSX.Element; export default ListView;