/** * This file centralizes the commands related to page (subprocess) */ import { Node } from 'react-flow-renderer'; import { EditorModel, EditorSubprocess } from '../../editormodel'; import { ModelAction } from '../model'; /** * Remove an edge of a subprocess (page) * @param page The page ID * @param id The edge ID */ export declare function removeEdgeCommand(page: string, id: string): import("../components/pages").DeleteEdgeAction & { act: "pages"; cascade?: ModelAction[] | undefined; } & { type: "model"; }; /** * Add an edge to the subprocess (page) * @param page The page ID * @param source The element ID of the edge source * @param target The element ID of the edge target */ export declare function newEdgeCommand(page: EditorSubprocess, source: string, target: string): import("../components/pages").NewEdgeAction & { act: "pages"; cascade?: ModelAction[] | undefined; } & { type: "model"; }; interface DragStartRecord { x: number; y: number; } /** * The element is moved on the page * @param page The page ID * @param model The current model * @param flowNode The node (React flow Node type) that is moved * @param ds The start location of the move */ export declare function dragCommand(page: string, model: EditorModel, flowNode: Node, ds: DragStartRecord): import("../components/pages").MoveAction & { act: "pages"; cascade?: ModelAction[] | undefined; } & { type: "model"; }; export {}; //# sourceMappingURL=page.d.ts.map