HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/dmstechonline/whatsapp.dmstech.online/node_modules/@vue-flow/core/dist/utils/changes.d.ts
import type {
  EdgeAddChange,
  EdgeChange,
  EdgeRemoveChange,
  EdgeSelectionChange,
  ElementChange,
  FlowElement,
  GraphEdge,
  GraphNode,
  NodeAddChange,
  NodeChange,
  NodeRemoveChange,
  NodeSelectionChange,
} from '../types'

export declare function applyChanges<
  T extends FlowElement = FlowElement,
  C extends ElementChange = T extends GraphNode ? NodeChange : EdgeChange,
>(changes: C[], elements: T[]): T[]
/** @deprecated Use store instance and call `applyChanges` with template-ref or the one received by `onPaneReady` instead */
export declare function applyEdgeChanges(changes: EdgeChange[], edges: GraphEdge[]): GraphEdge[]
/** @deprecated Use store instance and call `applyChanges` with template-ref or the one received by `onPaneReady` instead */
export declare function applyNodeChanges(changes: NodeChange[], nodes: GraphNode[]): GraphNode<any, any, string>[]
export declare function createSelectionChange(id: string, selected: boolean): NodeSelectionChange | EdgeSelectionChange
export declare function createAdditionChange<
  T extends GraphNode | GraphEdge = GraphNode,
  C extends NodeAddChange | EdgeAddChange = T extends GraphNode ? NodeAddChange : EdgeAddChange,
>(item: T): C
export declare function createNodeRemoveChange(id: string): NodeRemoveChange
export declare function createEdgeRemoveChange(
  id: string,
  source: string,
  target: string,
  sourceHandle?: string | null,
  targetHandle?: string | null,
): EdgeRemoveChange
export declare function getSelectionChanges(
  items: Map<string, any>,
  selectedIds?: Set<string>,
  mutateItem?: boolean,
): NodeSelectionChange[] | EdgeSelectionChange[]