import Matrix2D from './matrix'; /** * 为指定的 DOM 元素添加四周 拖拽 的功能,并限制最小和最大尺寸。 * @param element 目标元素(需要设置 position 为 absolute 或 relative) */ export interface DraggableOptions { getGlobalScale: () => number; getMatrix: () => Matrix2D; onDragStart?: () => void; onDragEnd: (matrix: Matrix2D) => void; } export declare function makeDraggable(element: HTMLDivElement, options: DraggableOptions): { destroy: () => void; };