import React from 'react'; import { TableProps, ColumnProps } from 'antd/lib/table'; import { SearchProps } from 'antd/lib/input'; declare type IFilterOption = boolean | ((option: any, keyword: string) => boolean); declare type IFilterSort = (optionA: any, optionB: any) => number; export interface ISelectTableColumnProps extends ColumnProps { key: React.ReactText; } export interface ISelectTableProps extends TableProps { mode?: 'multiple' | 'single'; dataSource?: any[]; optionAsValue?: boolean; valueType?: 'all' | 'parent' | 'child' | 'path'; showSearch?: boolean; searchProps?: SearchProps; primaryKey?: string | ((record: any) => string); filterOption?: IFilterOption; filterSort?: IFilterSort; onSearch?: (keyword: string) => void; onChange?: (value: any, options: any) => void; value?: any; } declare type ComposedSelectTable = React.FC> & { Column?: React.FC>; }; export declare const SelectTable: ComposedSelectTable; export default SelectTable;