/**
 * Webpack has bug for import loop, which is not the same behavior as ES module.
 * When util.js imports the TreeNode for tree generate will cause treeContextTypes be empty.
 */
import type { ComputedRef, PropType, ShallowRef } from 'vue';
import type { VueNode } from '../_util/type';
import type { IconType, Key, DataEntity, EventDataNode, DragNodeEvent, Direction, FlattenNode } from './interface';
import type { DraggableConfig } from './Tree';
export declare type NodeMouseEventParams = {
    event: MouseEvent;
    node: EventDataNode;
};
export declare type NodeDragEventParams = {
    event: DragEvent;
    node: EventDataNode;
};
export declare type NodeMouseEventHandler = (e: MouseEvent, node: EventDataNode) => void;
export declare type NodeDragEventHandler = (e: DragEvent, node: DragNodeEvent, outsideTree?: boolean) => void;
export interface TreeContextProps {
    prefixCls: string;
    selectable: boolean;
    showIcon: boolean;
    icon: IconType;
    switcherIcon: IconType;
    draggable: DraggableConfig;
    draggingNodeKey?: Key;
    checkable: boolean;
    customCheckable: (params: any) => any;
    checkStrictly: boolean;
    disabled: boolean;
    operationDisabledWithRow: boolean;
    keyEntities: Record<Key, DataEntity<any>>;
    dropLevelOffset?: number;
    dropContainerKey: Key | null;
    dropTargetKey: Key | null;
    dropPosition: -1 | 0 | 1 | null;
    indent: number | null;
    dropIndicatorRender: (props: {
        dropPosition: -1 | 0 | 1;
        dropLevelOffset: number;
        indent: number | null;
        prefixCls: string;
        direction: Direction;
    }) => VueNode;
    dragOverNodeKey: Key | null;
    dragging: boolean;
    direction: Direction;
    ellipsis?: boolean;
    getEllipsisPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
    loadData: (treeNode: EventDataNode) => Promise<void>;
    filterTreeNode: (treeNode: EventDataNode) => boolean;
    onNodeClick: NodeMouseEventHandler;
    onNodeDoubleClick: NodeMouseEventHandler;
    onNodeExpand: NodeMouseEventHandler;
    onNodeSelect: NodeMouseEventHandler;
    onNodeCheck: (e: MouseEvent, treeNode: EventDataNode, checked: boolean) => void;
    onNodeLoad: (treeNode: EventDataNode) => void;
    onNodeMouseEnter: NodeMouseEventHandler;
    onNodeMouseLeave: NodeMouseEventHandler;
    onNodeContextMenu: NodeMouseEventHandler;
    onNodeDragStart: NodeDragEventHandler;
    onNodeDragEnter: NodeDragEventHandler;
    onNodeDragOver: NodeDragEventHandler;
    onNodeDragLeave: NodeDragEventHandler;
    onNodeDragEnd: NodeDragEventHandler;
    onNodeDrop: NodeDragEventHandler;
    slots: {
        title?: (data: any) => any;
        titleRender?: (data: any) => any;
        [key: string]: ((...args: any[]) => any) | undefined;
    };
}
export declare const TreeContext: import("vue").DefineComponent<{
    value: {
        type: PropType<TreeContextProps>;
    };
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
    [key: string]: any;
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
    value: {
        type: PropType<TreeContextProps>;
    };
}>>, {}>;
export declare const useInjectTreeContext: () => ComputedRef<TreeContextProps>;
declare type KeysStateKeyType = {
    expandedKeysSet: ComputedRef<Set<Key>>;
    selectedKeysSet: ComputedRef<Set<Key>>;
    loadedKeysSet: ComputedRef<Set<Key>>;
    loadingKeysSet: ComputedRef<Set<Key>>;
    checkedKeysSet: ComputedRef<Set<Key>>;
    halfCheckedKeysSet: ComputedRef<Set<Key>>;
    expandedKeys: ShallowRef<Key[]>;
    selectedKeys: ShallowRef<Key[]>;
    loadedKeys: ShallowRef<Key[]>;
    loadingKeys: ShallowRef<Key[]>;
    checkedKeys: ShallowRef<Key[]>;
    halfCheckedKeys: ShallowRef<Key[]>;
    flattenNodes: ShallowRef<FlattenNode[]>;
};
export declare const useProvideKeysState: (state: KeysStateKeyType) => void;
export declare const useInjectKeysState: () => {
    expandedKeys: ShallowRef<Key[]>;
    selectedKeys: ShallowRef<Key[]>;
    loadedKeys: ShallowRef<Key[]>;
    loadingKeys: ShallowRef<Key[]>;
    checkedKeys: ShallowRef<Key[]>;
    halfCheckedKeys: ShallowRef<Key[]>;
    expandedKeysSet: ComputedRef<Set<Key>>;
    selectedKeysSet: ComputedRef<Set<Key>>;
    loadedKeysSet: ComputedRef<Set<Key>>;
    loadingKeysSet: ComputedRef<Set<Key>>;
    checkedKeysSet: ComputedRef<Set<Key>>;
    halfCheckedKeysSet: ComputedRef<Set<Key>>;
    flattenNodes: ShallowRef<FlattenNode[]>;
};
export {};
