import { bboxDragInfo, BboxEnclosedPoints, Coordinate, DragInfo } from '../types'; /** * Interface for the onDrag function props. */ interface OnDragProps { /** Information about the drag event. */ info: DragInfo; /** Updated available area as an array of coordinates. */ updatedAvailableArea: BboxEnclosedPoints | null; /** Indicates if the edit mode is active. */ editModeIsActive: boolean; /** Information about the bounding box drag. */ bboxDragInfo: bboxDragInfo | null; /** Function to update the bounding box drag information. */ updateBboxDragInfo: (updatedDragInfo: bboxDragInfo) => void; /** Function to set the original bounding box border coordinates. */ setOriginalBboxBorderCoordinates: (coords: Coordinate[]) => void; } /** * Handles the dragging of a bounding box in a graphical interface. * It checks if the cursor is inside a specified area and if editing mode is active. * Depending on the type of object being dragged, it updates the bounding box drag information * with the new coordinates or resets the original bounding box border coordinates. * * @param {OnDragProps} props - The props for the onDrag function. */ export declare const onDrag: ({ info, updatedAvailableArea, editModeIsActive, bboxDragInfo, updateBboxDragInfo, setOriginalBboxBorderCoordinates, }: OnDragProps) => void; export {};