import type { TreeOptionData } from '../common';
import type { TreeNode } from './tree-node';
export declare type TreeNodeValue = string | number;
export interface KeysType {
    value?: string;
    label?: string;
    children?: string;
}
export interface TreeNodeState {
    checkable?: boolean;
    checked?: boolean;
    indeterminate?: boolean;
    disabled?: boolean;
    draggable?: boolean;
    visible?: boolean;
    loading?: boolean;
    value?: TreeNodeValue;
    label?: any;
    expanded?: boolean;
    expandMutex?: boolean;
    actived?: boolean;
    activable?: boolean;
}
export interface TreeNodeModelProps<DataOption extends TreeOptionData = TreeOptionData> {
    value: TreeNodeValue;
    label: any;
    actived: boolean;
    checked: boolean;
    data: DataOption;
    expanded: boolean;
    indeterminate: boolean;
    loading: boolean;
}
export interface TreeNodeModel<T extends TreeOptionData = TreeOptionData> extends TreeNodeModelProps {
    appendData: (data: T | Array<T>) => void;
    getIndex: () => number;
    getLevel: () => number;
    getParent: () => TreeNodeModel;
    getParents: () => TreeNodeModel[];
    getChildren: (deep?: boolean) => boolean | TreeNodeModel[];
    getPath: () => TreeNodeModel[];
    getRoot: () => TreeNodeModel;
    getSiblings: () => TreeNodeModel[];
    insertAfter: (newData: T) => void;
    insertBefore: (newData: T) => void;
    isFirst: () => boolean;
    isLast: () => boolean;
    isLeaf: () => boolean;
    remove: (value?: TreeNodeValue) => void;
    setData: (data: T) => void;
}
export declare type TypeTargetNode = TreeNodeValue | TreeNode;
export declare type TypeIdMap = Map<TreeNodeValue, boolean>;
export declare type TypeValueMode = 'all' | 'parentFirst' | 'onlyLeaf';
export declare type TypeTimer = ReturnType<typeof setTimeout>;
export interface TypeSettingOptions {
    directly?: boolean;
}
export interface TypeRelatedNodesOptions {
    withParents?: boolean;
}
export interface TypeTreeFilterOptions {
    level?: number;
    filter?: Function;
    props?: TreeNodeState;
}
export interface TypeTreeNodeData extends TreeNodeState {
    children?: TypeTreeNodeData[];
    [key: string]: any;
}
export declare type TypeTreeItem = TypeTreeNodeData | TreeNode;
export declare type TypeTreeNodeModel = TreeNodeModel<TypeTreeNodeData>;
export declare type TypeTreeFilter = (node: TreeNodeModel<TypeTreeNodeData>) => boolean;
export interface TypeTreeEventState {
    node?: TreeNode;
    nodes?: TreeNode[];
    map?: TypeIdMap;
    data?: TypeTreeNodeData[];
}
export interface TypeTreeStoreOptions {
    prefix?: string;
    keys?: KeysType;
    expandAll?: boolean;
    expandLevel?: number;
    expandMutex?: boolean;
    expandParent?: boolean;
    activable?: boolean;
    activeMultiple?: boolean;
    checkable?: boolean;
    checkStrictly?: boolean;
    disabled?: boolean;
    draggable?: boolean;
    load?: Function;
    lazy?: boolean;
    valueMode?: TypeValueMode;
    filter?: (node: TreeNodeModel<TypeTreeNodeData>) => boolean;
    onLoad?: Function;
    onReflow?: Function;
    onUpdate?: Function;
    allowFoldNodeOnFilter?: Boolean;
}
