import { EditorAPI } from '../types/CommonTypes'; import { ToolType } from '../utils/Enums'; /** * The ToolController is responsible for all communication regarding the tools. * Methods inside this controller can be called by `window.SDK.tool.{method-name}` */ export declare class ToolController { #private; /** * @ignore */ constructor(editorAPI: EditorAPI); /** * This method sets the currently used tool * @param tool */ setTool: (tool: ToolType) => Promise>; /** * This method returns selected tool */ getSelected: () => Promise>; /** * @deprecated * This method sets the used tool to the select tool. * This method is deprecated in favour of the setSelect tool setter. */ setPointer: () => Promise>; /** * This method sets the used tool to the select tool. */ setSelect: () => Promise>; /** * This method sets the used tool to the Move tool */ setHand: () => Promise>; /** * This method sets the used tool to the Zoom tool */ setZoom: () => Promise>; /** * This method sets the used tool to the TextFrame tool */ setTextFrame: () => Promise>; /** * This method sets the used tool to the ImageFrame tool */ setImageFrame: () => Promise>; /** * This method sets the used tool to the ShapeRectangle tool */ setShapeRect: () => Promise>; /** * This method sets the used tool to the ShapeEllipse tool */ setShapeEllipse: () => Promise>; /** * This method sets the used tool to the ShapePolygon tool */ setShapePolygon: () => Promise>; /** * This method sets the used tool to the ComponentGrid tool */ setComponentGrid: () => Promise>; }