import type { NodeMapStructuralType } from './networkGraphShared'; export type DragStateType = { dragStarted: boolean; id: string | null; }; export type ZoomAndPanStateType = { zoom: number | null; x: number | null; y: number | null; }; export type PositionType = { x: number; y: number; }; export declare const isValidZoomAndPanState: (zoomAndPanState: ZoomAndPanStateType) => zoomAndPanState is PositionType & { zoom: number; }; export declare const getAdjustedDragPosition: (pendingDragPosition: PositionType | null, zoomAndPanState: ZoomAndPanStateType) => PositionType | null; type MousePositionEvent = { clientX?: number; clientY?: number; }; type SvgPointerTarget = { getBoundingClientRect: () => { left: number; top: number; width: number; height: number; }; width?: { baseVal?: { value: number; }; }; height?: { baseVal?: { value: number; }; }; }; export declare const getPointerInGraphSpaceFromMouseEvent: (event: MousePositionEvent | null | undefined, svgElement: SvgPointerTarget | null | undefined, zoomAndPanState: ZoomAndPanStateType) => PositionType | null; export declare const getInitialDragOffset: (pointerInGraphSpace: PositionType | null, nodePosition: PositionType | null) => PositionType | null; type DraggedNodePositionParams = { pendingDragPosition: PositionType | null; zoomAndPanState: ZoomAndPanStateType; currentNodePosition: PositionType | null; existingDragOffset: PositionType | null; }; type DraggedNodePositionResult = { adjustedPositionWithOffset: PositionType; resolvedDragOffset: PositionType | null; }; export declare const getDraggedNodePositionWithOffset: ({ pendingDragPosition, zoomAndPanState, currentNodePosition, existingDragOffset, }: DraggedNodePositionParams) => DraggedNodePositionResult | null; export declare const updateDraggedNodePosition: (previousNodeMap: NodeMapStructuralType, nodeId: string | null, nextPosition: PositionType | null) => NodeMapStructuralType; export declare const patchNodeMapWithDragPositionChanges: (previousNodeMap: NodeMapStructuralType, baseNodeMap: NodeMapStructuralType, previousDragPositions: Record, nextDragPositions: Record) => NodeMapStructuralType; export declare const patchDragPositionsMap: (baseMap: Record, previousDragPositions: Record, nextDragPositions: Record) => { [x: string]: { x: number; y: number; }; }; export {}; //# sourceMappingURL=dragUtils.d.ts.map