import type { MutableRefObject } from "react";
import type { NodeApi, TreeApi } from "react-arborist";
import type { TreeNodeData } from "../types";
interface UseTreeSelectionOptions {
    selectedKeys?: string[];
    defaultSelectedKeys?: string[];
    onSelect?: (keys: string[], info: {
        node: TreeNodeData;
    }) => void;
    treeRef: MutableRefObject<TreeApi<TreeNodeData> | undefined>;
    selectable: boolean;
}
export declare const useTreeSelection: ({ selectedKeys: controlledKeys, defaultSelectedKeys, onSelect, treeRef, selectable, }: UseTreeSelectionOptions) => {
    handleSelect: (nodes: NodeApi<TreeNodeData>[]) => void;
};
export {};
