/// <reference types="react" />
import { GetProp, GetProps, Table, TablePaginationConfig } from 'antd';
import ComBineSearchProps, { CombineOptionsType } from "../../CombineSearch/types";
type TableProps = GetProps<typeof Table>;
type column = GetProp<typeof Table, 'columns'>[number];
export type CombinTablePaginationConfig = Omit<TablePaginationConfig, 'onChange'> & {
    /** 朴素分页风格；`true` 为 antd 默认样式，不传或为 `false` 时高亮当前页 */
    plain?: boolean;
    onChange?: (page: number, size: number, values: Record<string, any>) => void;
};
type pagination = false | CombinTablePaginationConfig;
export type ColumnProps = column & CombineOptionsType;
interface AntTableProps extends Omit<TableProps, 'columns' | 'pagination'> {
    columns?: ColumnProps[];
    pagination?: pagination;
    setting?: boolean;
    refresh?: boolean;
    topNode?: React.ReactNode;
}
type Search = {
    search?: boolean;
};
type CombinTableProps = AntTableProps & Omit<ComBineSearchProps, 'options'> & Search;
export { CombinTableProps };
