import { type NodeDragItem, type XYPosition, InternalNodeBase, NodeBase, NodeLookup, SnapGrid } from '../types'; export declare function isParentSelected(node: NodeType, nodeLookup: NodeLookup): boolean; export declare function hasSelector(target: Element | EventTarget | null, selector: string, domNode: Element): boolean; export declare function getDragItems(nodeLookup: Map>, nodesDraggable: boolean, mousePos: XYPosition, nodeId?: string): Map; export declare function getEventHandlerParams({ nodeId, dragItems, nodeLookup, dragging, }: { nodeId?: string; dragItems: Map; nodeLookup: Map; dragging?: boolean; }): [NodeBase, NodeBase[]]; /** * If a selection is being dragged we want to apply the same snap offset to all nodes in the selection. * This function calculates the snap offset based on the first node in the selection. */ export declare function calculateSnapOffset({ dragItems, snapGrid, x, y, }: { dragItems: Map; snapGrid: SnapGrid; x: number; y: number; }): { x: number; y: number; } | null; //# sourceMappingURL=utils.d.ts.map