import React, { ReactNode, ReactElement } from 'react'; import { TableProps, ColumnsType } from 'antd/es/table'; import { ModalProps } from 'antd/es/modal'; type rowKeyType = string | ((record: RecordType, index?: number) => React.Key); export type TableSelectProps = { title?: ReactNode; columns: ColumnsType; dataSource: RecordType[]; rowKey?: rowKeyType; value?: RecordType[]; multiple?: boolean; placeholder?: string; validator?: (record: RecordType) => boolean | Promise; validatorTip?: string; onSearch?: (value: string) => void; onCancel?: () => void; onOk: (value: RecordType[]) => void; modalProps?: ModalProps; tableProps?: TableProps; children?: ReactElement; useUnitSearchQueryList?: { label: string; key: string; title?: string; }[]; [key: string]: any; }; declare function TableSelect({ title, columns, dataSource: dataSourceProp, rowKey, value, multiple, placeholder, validator, validatorTip, onSearch, onCancel: onCancelProp, onOk: onOkProp, children, modalProps, tableProps, useUnitSearchQueryList, ...restProps }: TableSelectProps): JSX.Element; export default TableSelect;