import { SetupContext } from '@vue/composition-api';
import { TdEnhancedTableProps, PrimaryTableCol, PrimaryTableCellParams, TableRowData, TableRowValue, TableRowState } from '../type';
export default function useTreeData(props: TdEnhancedTableProps, context: SetupContext): {
    store: import("@vue/composition-api").Ref<{
        treeDataMap: import("./tree-store").TableTreeDataMap<TableRowData>;
        initialTreeStore: (dataSource: TableRowData[], columns: PrimaryTableCol<TableRowData>[], keys: import("./tree-store").KeysType) => void;
        toggleExpandData: (p: PrimaryTableCellParams<TableRowData>, dataSouce: TableRowData[], keys: import("./tree-store").KeysType) => TableRowData[];
        updateExpandRow: (changeRow: TableRowState<TableRowData>, dataSource: TableRowData[], keys: import("./tree-store").KeysType) => TableRowData[];
        getData: (key: TableRowValue) => TableRowState<TableRowData>;
        updateData: (key: TableRowValue, newRowData: TableRowData, dataSource: TableRowData[], keys: import("./tree-store").KeysType) => number;
        remove: (key: TableRowValue, dataSource: TableRowData[], keys: import("./tree-store").KeysType) => TableRowData[];
        appendTo: (key: string | number, newData: TableRowData, dataSource: TableRowData[], keys: import("./tree-store").KeysType) => TableRowData[];
    }>;
    rowDataKeys: import("@vue/composition-api").ComputedRef<{
        rowKey: string;
        childrenKey: "children";
    }>;
    dataSource: import("@vue/composition-api").Ref<{
        [x: string]: any;
        children?: any[];
    }[]>;
    setData: <T>(key: TableRowValue, newRowData: T) => void;
    getData: (key: TableRowValue) => TableRowState;
    remove: (key: TableRowValue) => void;
    appendTo: <T_1>(key: TableRowValue, newData: T_1) => void;
    formatTreeColum: (col: PrimaryTableCol) => PrimaryTableCol;
};
