import type { CheckCardProps } from '@ant-design/pro-card'; import type { ActionType } from '@ant-design/pro-table'; import type { ListProps, TableProps } from 'antd'; import type { GetRowKey, TableRowSelection } from 'antd/lib/table/interface'; import React from 'react'; import type { ItemProps } from './Item'; import type { GetComponentProps } from './index'; import type { AnyObject } from 'antd/es/_util/type'; import type { PaginationConfig } from 'antd/lib/pagination'; type AntdListProps = Omit, 'rowKey'>; export type ListViewProps = Omit, 'renderItem'> & Pick, 'columns' | 'dataSource' | 'expandable' | 'pagination'> & { rowKey?: string | keyof RecordType | GetRowKey; showActions?: 'hover' | 'always'; showExtra?: 'hover' | 'always'; rowSelection?: TableRowSelection; 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?: CheckCardProps; pagination?: PaginationConfig; }; declare function ListView(props: ListViewProps): import("react/jsx-runtime").JSX.Element; export default ListView;