import { INodeInstance, INode } from './../../types'; import { Node as ButterFlyNode, Endpoint as ButterFlyEndPoint } from 'butterfly-dag'; export declare class NodeClass extends ButterFlyNode { [x: string]: any; constructor(props: any); static __$$type: string; _addEventListener(): void; update(options: { [key: keyof INode]: any; }, params?: { bottomPanelForceUpdate?: boolean; }): void; draw({ options }: INodeInstance, dom?: HTMLDivElement): HTMLDivElement; getOutputNum(): any; getInputNum(): any; couldOutput(): boolean; couldInput(): boolean; /** * 渲染右侧配置面板 */ /** * 连线校验,必须实现 */ connectValidate({ sourceNode, targetNode, type, }: { sourceNode: any; targetNode: any; type: 'source' | 'target'; }): string[]; /** * 断线之后回调,必须实现 */ onDisconnected({ sourceNode, targetNode, type, }: { sourceNode: any; targetNode: any; type: 'source' | 'target'; }): Promise; /** * 连线之后回调,必须实现 */ onConnected({ sourceNode, targetNode, type, }: { sourceNode: any; targetNode: any; type: 'source' | 'target'; }): Promise; /** * 当节点配置变化时,需要通知下游节点 */ notifyChange({ sourceNode, targetNode, type, action, }: { sourceNode: any; targetNode: any; type: 'source' | 'target'; action?: 'DISCONNECT'; }): Promise; /** * 打开配置校验方法 */ openConfigValidate(): Promise; getParentNodeIds: (nodeId?: any, graph?: any) => string[]; getParentNodes: (nodeId?: any, graph?: any) => any[]; getAllParentNodeIds: (nodeId?: any, graph?: any) => string[]; getAllParentNodes: (nodeId?: any, graph?: any) => any[]; getChildrenNodeIds: (nodeId?: any, graph?: any) => string[]; getChildrenNodes: (nodeId?: any, graph?: any) => any[]; getAllChildrenNodeIds: (nodeId?: any, graph?: any) => string[]; getAllChildrenNodes: (nodeId?: any, graph?: any) => any[]; /** * 保存配置的时候回调函数,必须重写 */ onSaveConfig({ onSuccess, onError }: { onSuccess: any; onError: any; }): Promise; onCloseConfig(): void; } export declare class EndPointClass extends ButterFlyEndPoint { [x: string]: any; draw({ options, dom, id, type }: any): any; linkable(): void; unLinkable(): void; hoverLinkable(): void; unHoverLinkable(): void; hightLight(): void; unHightLight(): void; hide(): void; unHide(): void; }