import { Point, CurvedLine } from '@wisemapping/web2d';
import PositionType from './PositionType';
import SizeType from './SizeType';
import Topic from './Topic';
import Canvas from './Canvas';
import CanvasElement from './CanvasElement';
declare class DragPivot implements CanvasElement {
    private _position;
    private _isVisible;
    private _targetTopic;
    private _connectRect;
    private _dragPivot;
    private _curvedLine;
    private _straightLine;
    private _size;
    constructor();
    isVisible(): boolean;
    getTargetTopic(): Topic | null;
    private _buildStraightLine;
    private _buildCurvedLine;
    private _redrawLine;
    setPosition(point: Point): void;
    getPosition(): PositionType;
    private _buildRect;
    private _getPivotRect;
    getSize(): SizeType;
    setVisibility(value: boolean): void;
    _getConnectionLine(): CurvedLine | null;
    addToWorkspace(workspace: Canvas): void;
    removeFromWorkspace(workspace: Canvas): void;
    connectTo(targetTopic: Topic, position: PositionType): void;
    disconnect(workspace: Canvas): void;
    static DEFAULT_PIVOT_SIZE: {
        width: number;
        height: number;
    };
}
export default DragPivot;
