import type { MutableRefObject } from "react";
import type { TreeApi } from "react-arborist";
import type { TreeNodeData } from "../types";
interface UseTreeExpansionOptions {
    expandedKeys?: string[];
    defaultExpandedKeys?: string[];
    autoExpandParent?: boolean;
    onExpand?: (keys: string[], info: {
        expanded: boolean;
        node: TreeNodeData;
    }) => void;
    treeRef: MutableRefObject<TreeApi<TreeNodeData> | undefined>;
}
export declare const useTreeExpansion: ({ expandedKeys: controlledKeys, defaultExpandedKeys, autoExpandParent, onExpand, treeRef, }: UseTreeExpansionOptions) => {
    initialOpenState: Record<string, boolean>;
    handleToggle: (id: string) => void;
};
export {};
