/** * This file centralizes the commands related to node elements */ import { MMELEdge } from '../../../serialize/interface/flowcontrolinterface'; import { MMELLink, MMELNote, MMELProvision, MMELReference } from '../../../serialize/interface/supportinterface'; import { EditorEGate, EditorModel, EditorNode, EditorProcess } from '../../editormodel'; import { ModelAction } from '../model'; /** * Edit the node elements. It can include gateway, approval, process, timer / signal events. * However, some components are more complex and should use the other commands for updating. * @param id ID of the element * @param value the updated content of the element */ export declare function editElmCommand(id: string, value: EditorNode): import("../components/itemTemplate").EditAction & { act: "elements"; } & { subtask: "flowunit"; } & { act: "elements"; cascade?: ModelAction[] | undefined; } & { type: "model"; }; /** * Edit gateway * @param id The ID of the gateway element * @param page The page to be updated (because we need to edit the edges too) * @param update The updated content of the gateway * @param edges The updated edges */ export declare function editEGateCommand(id: string, page: string, update: EditorEGate, edges: MMELEdge[]): import("../hybird/distributor").EGateEditAction & { act: "hybird"; actions?: ModelAction[] | undefined; } & { type: "model"; }; /** * Add a subprocess page to the process * @param id The Process ID */ export declare function createSubprocessCommand(id: string): import("../hybird/distributor").ProcessAddPageAction & { act: "hybird"; actions?: ModelAction[] | undefined; } & { type: "model"; }; /** * Remove the subprocess page from the process * @param id The Process ID */ export declare function deleteSubprocessCommand(id: string): import("../hybird/distributor").ProcessRemovePageAction & { act: "hybird"; actions?: ModelAction[] | undefined; } & { type: "model"; }; /** * A process can appear multiple times on different pages. If the removal of the process is not the last copy of the process, it is a bring out process. * @param id The process ID * @param page The page where the process is removed */ export declare function bringoutProcessCommand(id: string, page: string): import("../hybird/distributor").ProcessBringOutAction & { act: "hybird"; actions?: ModelAction[] | undefined; } & { type: "model"; }; /** * Edit the contents of a process * @param id The process ID * @param process The updated content of the process * @param provisions The updated provision statements * @param notes The updated notes statements * @param links The updated links * @param refs The new references (due to importing from selected text of a reference document) */ export declare function editProcessCommand(id: string, process: EditorProcess, provisions: MMELProvision[], notes: MMELNote[], links: MMELLink[], refs: MMELReference[]): import("../hybird/distributor").ProcessEditAction & { act: "hybird"; actions?: ModelAction[] | undefined; } & { type: "model"; }; /** * Delete the process element * Note that it means it is the last copy of the process. Otherwise, the bring out command should be used. * @param model Just pass the existing model to the function * @param pageid The page where the process is located. * @param id The Process ID */ export declare function deleteNodeAction(model: EditorModel, pageid: string, id: string): ModelAction; //# sourceMappingURL=elements.d.ts.map