import { Ref } from '@vue/composition-api'; import { TdEnhancedTableProps, TdPrimaryTableProps, TableRowData, PrimaryTableCol } from '../type'; import { KeysType, TableTreeDataMap, TreeDataMapType } from '../../_common/js/table/tree-store'; export interface GetChildrenDataReturnValue { allChildren: Array; allChildrenKeys: Array; leafNodeKeys: Array; } export declare const childrenMap: Map; export declare function getChildrenData(treeDataMap: TreeDataMapType, data: TableRowData, keys: { childrenKey: string; rowKey: string; }, r?: GetChildrenDataReturnValue): GetChildrenDataReturnValue; export interface RemoveParams { selectedRowKeys: Array; removeKeys: Array; } export interface RemainData { data: Array; keys: Array; } export declare function removeChildrenKeys(p: RemoveParams, r?: RemainData): RemainData; export interface GetKeyDataParams { treeDataMap: TreeDataMapType; data: Array; column: PrimaryTableCol; keys: KeysType; } export interface GetRowDataParams { treeDataMap: TreeDataMapType; selectedRowKeys: Array; } export declare function getRowDataByKeys(p: GetRowDataParams): import("../../_common/js/table/types").TableRowState[]; declare type SelectChangeParams = Parameters; export default function useTreeSelect(props: TdEnhancedTableProps, treeDataMap: Ref): { tIndeterminateSelectedRowKeys: Ref<(string | number)[]>; onInnerSelectChange: (rowKeys: SelectChangeParams[0], extraData: SelectChangeParams[1]) => void; }; export {};