import { SelectNodesMode } from '../type';

type SelectNodesType = {
    mode: SelectNodesMode;
    data?: any;
    callback?: ({ data, type }: {
        data: any;
        type?: string;
    }) => void;
};
type SelectFunctionType = {
    data?: any;
    callback?: ({ data }: {
        data: any;
    }) => void;
};
/**
 * 为方便管理 用事件，必须再这里声明
 * 举例：appInit、userLogin,至少“主”，“动”两个单词组成
 */
export type MittEvents = {
    selectNodes: SelectNodesType;
    selectFunction: SelectFunctionType;
    [key: string]: any;
};
export {};
