import type { AnyObject } from '../../_util/type'; import { SELECTION_ALL, SELECTION_INVERT, SELECTION_NONE } from '../constant'; import type { ExpandableType, GetPopupContainer, GetRowKey, InternalColumnsType, Key, SelectionItem, TableLocale, TableRowSelection } from '../interface'; interface UseSelectionConfig { prefixCls: string; pageData: RecordType[]; data: readonly RecordType[]; getRowKey: GetRowKey; getRecordByKey: (key: Key) => RecordType; expandableType: ExpandableType; childrenColumnName: keyof RecordType; locale: TableLocale; verticalLine?: boolean; size?: 'default' | 'middle' | 'small'; getPopupContainer?: GetPopupContainer; } export type InternalSelectionItem = SelectionItem | typeof SELECTION_ALL | typeof SELECTION_INVERT | typeof SELECTION_NONE; declare const useSelection: (config: UseSelectionConfig, rowSelection?: TableRowSelection | undefined) => readonly [(columns: InternalColumnsType) => InternalColumnsType, Set]; export default useSelection;