import { Position } from '../customTypings/index.d'; /** * Ask for node creation and injection into current dataflow * @param {string} nodeId * @param {string} nodeType * @param {Object} attr * @return {Object} */ export declare const addNode: (nodeId: string, nodeType?: string, { data, graphicalAttributes }?: any) => { type: string; nodeId: string; nodeType: string | undefined; data: any; graphicalAttributes: any; }; /** * @deprecated use moveStart action */ export declare function startMoveNodeTo(nodeId: string, nodePosition: string): { type: string; nodeId: string; nodePosition: string; }; /** * Ask for moving node * @deprecated use move action * @param {string} nodeId - identifier of the targeted node * @param {{x: number, y: number}} nodePosition - the new absolute position of the node * @return {Object} */ export declare function moveNodeTo(nodeId: string, nodePosition: Position): { type: string; nodeId: string; nodePosition: Position; }; /** * Ask to apply the same movement to multiples nodesId * @deprecated * @param nodesId {array} list of nodeId * @param movement {Object} relative movement to apply on all nodes * * @return {Object} */ export declare const applyMovementTo: (nodesId: number[], movement: Position) => { type: string; nodesId: number[]; movement: Position; }; /** * When node movement is done * @deprecated use moveEnd action * @param {string} nodeId - identifier of the targeted node * @param {{x: number, y: number}} nodePosition - the new absolute position of the node * @return {Object} */ export declare function moveNodeToEnd(nodeId: string, nodePosition: { x: number; y: number; }): { type: string; nodeId: string; nodePosition: { x: number; y: number; }; }; /** * set node size * @deprecated * @param {string} nodeId * @param {{height: number, width: number}} nodeSize * @return {Object} */ export declare const setNodeSize: (nodeId: string, nodeSize: { width: number; height: number; }) => { type: string; nodeId: string; nodeSize: { width: number; height: number; }; }; /** * Ask for node creation and injection into current dataflow * @deprecated * @param {string} nodeId * @param {string} nodeType * @return {Object} */ export declare function setNodeType(nodeId: string, nodeType: string): { type: string; nodeId: string; nodeType: string; }; /** * Give the ability to a graphical attribute onto the node * @deprecated * @param {string} nodeId * @param {Object} graphicalAttributes */ export declare const setNodeGraphicalAttributes: (nodeId: string, graphicalAttributes: { selected: boolean; }) => { type: string; nodeId: string; graphicalAttributes: { selected: boolean; }; }; /** * Ask to remove a graphical attribute on target node * @deprecated * @param {string} nodeId * @param {string} graphicalAttributesKey - the key of the attribute to be removed */ export declare const removeNodeGraphicalAttribute: (nodeId: string, graphicalAttributesKey: string) => { type: string; nodeId: string; graphicalAttributesKey: string; }; /** * Give the ability to set data onto a node * @deprecated * @param {string} nodeId * @param {Object} data * @param {boolean} bySubmit Flag to indicates that the action was triggered by a manual user action */ export declare const setNodeData: (nodeId: string, data: { type: string; }, bySubmit: boolean) => { type: string; nodeId: string; data: { type: string; }; bySubmit: boolean; }; /** * Ask to remove a graphical attribute on target node * @deprecated * @param {string} nodeId * @param {string} dataKey - the key of the data to be removed */ export declare const removeNodeData: (nodeId: string, dataKey: string) => { type: string; nodeId: string; dataKey: string; }; /** * Ask for removal of target node and each ports/links attached to it * @deprecated use deleteNode action * @param {string} nodeId */ export declare const removeNode: (nodeId: string) => { type: string; nodeId: string; }; export declare const update: (nodeId: string, node: any) => { type: string; node: any; nodeId: string; };