import React, { ReactNode } from 'react'; import { IFilterProps } from './Filter'; import { SorterResult, TableProps } from 'antd/lib/table/interface'; import './index.less'; import { WrappedFormUtils } from 'antd/lib/form/Form'; export declare type RequestResult = { total: number; data: T[]; }; export declare type PaginationType = { current: number; pageSize: number; }; export declare type ActionType = { delRefresh: () => void; addRefresh: () => void; refresh: (pageInfo?: PaginationType) => void; searchWithFilters: (value: Record | null) => void; getFilterHandle: () => WrappedFormUtils | null; getPageInfo: () => PaginationType; }; export declare type IProTable = { filterProps?: Omit>, 'loading'>; tableProps: TableProps & { paginationDisplayCount?: number | boolean; }; request: (searchFilters: Record | null, sorter: SorterResult | {}, pagination: PaginationType, tableFilter: Partial>) => Promise>; onError: (e: unknown) => void; actionRef?: React.Ref; children?: ReactNode | undefined; }; declare const ProTable: >(props: IProTable) => JSX.Element; export default ProTable;