import { EditorAPI } from '../types/CommonTypes'; import { SelectedTextStyle, TextStyleUpdateType } from '../types/TextStyleTypes'; /** * The TextStyleController is responsible for all communication regarding text styles. * Methods inside this controller can be called by `window.SDK.textStyle.{method-name}` */ export declare class TextStyleController { #private; /** * @ignore */ constructor(editorAPI: EditorAPI); /** * This method updates a selected Text's style properties * @returns */ set: (style: TextStyleUpdateType) => Promise>; /** * This method removes a selected Text's style properties * If the text is selected, then the inline style properties will be removed * If the text is not selected and user tried to change any style property, the temporary style will be removed * if there is no text selection and there is no temporary style, the inline paragraph properties will be removed * @returns */ removeSelected: () => Promise>; /** * This method gets a selected Text's style properties * @returns */ getSelected: () => Promise>; }