import { Connection, Node, NodeEditorData, NodeId, Position } from '../../../types/core'; import { ActionUnion } from '../../../utils/typedActions'; export declare const nodeEditorActions: { readonly addNode: ((node: Omit) => { type: "ADD_NODE"; payload: { node: Omit; }; }) & { readonly type: "ADD_NODE"; }; readonly addNodeWithId: ((node: Node) => { type: "ADD_NODE_WITH_ID"; payload: { node: Node; }; }) & { readonly type: "ADD_NODE_WITH_ID"; }; readonly updateNode: ((nodeId: string, updates: Partial) => { type: "UPDATE_NODE"; payload: { nodeId: string; updates: Partial; }; }) & { readonly type: "UPDATE_NODE"; }; readonly deleteNode: ((nodeId: string) => { type: "DELETE_NODE"; payload: { nodeId: string; }; }) & { readonly type: "DELETE_NODE"; }; readonly moveNode: ((nodeId: string, position: Position) => { type: "MOVE_NODE"; payload: { nodeId: string; position: Position; }; }) & { readonly type: "MOVE_NODE"; }; readonly moveNodes: ((updates: Record) => { type: "MOVE_NODES"; payload: { updates: Record; }; }) & { readonly type: "MOVE_NODES"; }; readonly addConnection: ((connection: Omit, options?: { allowMultiToPort?: boolean; } | undefined) => { type: "ADD_CONNECTION"; payload: { connection: Omit; allowMultiToPort: boolean | undefined; }; }) & { readonly type: "ADD_CONNECTION"; }; readonly deleteConnection: ((connectionId: string) => { type: "DELETE_CONNECTION"; payload: { connectionId: string; }; }) & { readonly type: "DELETE_CONNECTION"; }; readonly setNodeData: ((data: NodeEditorData) => { type: "SET_NODE_DATA"; payload: { data: NodeEditorData; }; }) & { readonly type: "SET_NODE_DATA"; }; readonly restoreState: ((data: NodeEditorData) => { type: "RESTORE_STATE"; payload: { data: NodeEditorData; }; }) & { readonly type: "RESTORE_STATE"; }; readonly duplicateNodes: ((nodeIds: string[]) => { type: "DUPLICATE_NODES"; payload: { nodeIds: string[]; }; }) & { readonly type: "DUPLICATE_NODES"; }; readonly groupNodes: ((nodeIds: string[], groupId?: string | undefined) => { type: "GROUP_NODES"; payload: { nodeIds: string[]; groupId: string | undefined; }; }) & { readonly type: "GROUP_NODES"; }; readonly ungroupNode: ((groupId: string) => { type: "UNGROUP_NODE"; payload: { groupId: string; }; }) & { readonly type: "UNGROUP_NODE"; }; readonly updateGroupMembership: ((updates: Record) => { type: "UPDATE_GROUP_MEMBERSHIP"; payload: { updates: Record; }; }) & { readonly type: "UPDATE_GROUP_MEMBERSHIP"; }; readonly moveGroupWithChildren: ((groupId: string, delta: { x: number; y: number; }, affectedNodeIds: string[]) => { type: "MOVE_GROUP_WITH_CHILDREN"; payload: { groupId: string; delta: { x: number; y: number; }; affectedNodeIds: string[]; }; }) & { readonly type: "MOVE_GROUP_WITH_CHILDREN"; }; readonly autoLayout: ((layoutType: "force" | "hierarchical" | "grid", selectedOnly?: boolean | undefined) => { type: "AUTO_LAYOUT"; payload: { layoutType: "force" | "hierarchical" | "grid"; selectedOnly: boolean | undefined; }; }) & { readonly type: "AUTO_LAYOUT"; }; readonly copyNodes: ((nodeIds: string[]) => { type: "COPY_NODES"; payload: { nodeIds: string[]; }; }) & { readonly type: "COPY_NODES"; }; readonly pasteNodes: ((offsetX?: number | undefined, offsetY?: number | undefined) => { type: "PASTE_NODES"; payload: { offsetX: number | undefined; offsetY: number | undefined; }; }) & { readonly type: "PASTE_NODES"; }; readonly pruneInvalidConnections: (() => { type: "PRUNE_INVALID_CONNECTIONS"; payload: {}; }) & { readonly type: "PRUNE_INVALID_CONNECTIONS"; }; }; export type NodeEditorAction = ActionUnion; export type { NodeEditorData };