import { LEVEL_ENUM, Vertex, Service, Entity, Interface, Process, Structure } from '..'; export interface Category { level: LEVEL_ENUM.category; name: string; categoryInterfaces: Array; categoryStructures: Array; isLeaf: false; structureExpanded: false; interfaceExpanded: false; } /** * 数据分类 */ export declare class GlobalLogicNode extends Vertex { /** * 概念类型 */ readonly level: LEVEL_ENUM; readonly type: 'logics' | 'interfaces'; globalLogics: Array; entityLogics: Array; processLogics: Array; interfaces: Array; structures: Array; categories: Array; readonly service: Service; /** * @param source 需要合并的部分参数 */ constructor(source?: Partial); createOrGetCatogory(category: string): Category; addCategoryInterface(iface: Interface): void; addCategoryStructure(sturct: Structure): void; checkExternalInterface(category: string, name: string): { category: Category; interface: undefined; }; removeCategory(categoryInstance: Category): void; removeCategoryStructure(sturct: Structure): void; removeInterface(itface: Interface): void; syncEntityLogics(): void; syncStructures(structuresOrigin: Array): void; } export default GlobalLogicNode;