/// import { type PortPositions } from '../components/NodeCanvas'; /** * Calculate the position of every port relative to the canvas root, in canvas space. * This is done in one pass per NodeCanvas render, and is used to draw the edges between nodes. * It's done this way with a nodePortPositions state using rounded numbers for performance reasons. * In the ideal case, no position will have changed, so the state does not update. */ export declare function useNodePortPositions({ enabled, isDraggingNode }: { enabled: boolean; isDraggingNode: boolean; }): { nodePortPositions: PortPositions; canvasRef: import("react").RefObject; recalculate: () => void; }; //# sourceMappingURL=useNodePortPositions.d.ts.map