/// import { TreeValue } from '../hooks/useTree/type'; import { SingleTreeProps, MultipleTreeProps, TreeNode } from '../types/tree'; declare type ChangeRecord = { node: TreeNode; res: boolean; }; interface MultipleProps extends Pick, 'onChecked' | 'onExpand' | 'checkedPath' | 'expandPath' | 'expandIcon' | 'draggleIcon'> { hookCheckedPath: TreeValue[][]; hookExpandPath: TreeValue[][]; changeCheckedPath: (path: TreeValue[][]) => void; changeExpandPath: (path: TreeValue[][]) => void; } interface SingleProps extends Pick, 'onChecked' | 'onExpand' | 'checkedPath' | 'expandPath' | 'expandIcon' | 'draggleIcon'> { hookCheckedPath: TreeValue[]; hookExpandPath: TreeValue[][]; changeCheckedPath: (path: TreeValue[]) => void; changeExpandPath: (path: TreeValue[][]) => void; } interface Return { curCheckedRef: React.MutableRefObject | undefined>; curExpandRef: React.MutableRefObject | undefined>; expandHandleWidth: React.MutableRefObject; draggleHandleWidth: React.MutableRefObject; treeWrapperRef: React.RefObject; } declare type Props = MultipleProps | SingleProps; export declare function useResponseTree(props: MultipleProps): Return; export declare function useResponseTree(props: SingleProps): Return; export default function useResponseTree({ hookCheckedPath, hookExpandPath, checkedPath, expandPath, expandIcon, draggleIcon, onChecked, onExpand, changeCheckedPath, changeExpandPath, }: Props): { curCheckedRef: import("react").MutableRefObject | undefined>; curExpandRef: import("react").MutableRefObject | undefined>; expandHandleWidth: import("react").MutableRefObject; draggleHandleWidth: import("react").MutableRefObject; treeWrapperRef: import("react").RefObject; }; export {};