import React from 'react'; import { ConfigProviderProps } from 'antd/es/config-provider'; import { TableProps, ColumnProps } from 'antd/lib/table'; import { TableRowSelection } from 'antd/lib/table/interface'; import { IColumnsType } from '../d-query-form/DQueryForm'; declare const ModeTypes: ['default', 'compact', string]; export declare type ModeType = typeof ModeTypes[number]; export interface ITableColumnProps extends ColumnProps { commonFilter?: boolean; commonSorter?: boolean; commonSearch?: boolean; searchRender?: (value: React.ReactText, row: T, index: number, highlightNode: React.ReactNode) => React.ReactNode; } interface IBasicTableProps extends TableProps { dataSource: any; columns: ITableColumnProps[]; dQueryFormColumns?: IColumnsType[]; showQueryOptionBtns?: boolean; showQueryCollapseButton?: boolean; dQueryFormProps?: any; isQuerySearchOnChange?: boolean; rowSelection?: TableRowSelection; loading?: boolean; queryMode?: ModeType; tableTitle?: string; hideContentBorder?: boolean; onReload?: () => void; showReloadBtn?: boolean; showFilter?: boolean; showSearch?: boolean; showBodyBg?: boolean; onSearch?: (query: string) => void; onSearchIcon?: () => void; searchPlaceholder?: string; searchPos?: 'full' | 'right' | string; filterType?: 'line' | 'half' | 'none' | string; reloadBtnPos?: 'left' | 'right' | string; reloadBtnType?: 'icon' | 'btn' | string; leftHeader?: React.ReactNode | string | number; customHeader?: React.ReactNode | string | number; antProps?: TableProps; antConfig?: {} & ConfigProviderProps; } declare function BasicTable(props: IBasicTableProps): JSX.Element; export default BasicTable;