import { EditorAPI, Id } from '../types/CommonTypes'; import { ParagraphStyle, ParagraphStyleUpdate } from '../types/ParagraphStyleTypes'; /** * The ParagraphStyleController is responsible for all communication regarding paragraph styles. * Methods inside this controller can be called by `window.SDK.paragraphStyle.{method-name}` */ export declare class ParagraphStyleController { #private; /** * @ignore */ constructor(editorAPI: EditorAPI); /** * This method returns the list of paragraph styles * @returns */ getAll: () => Promise>; /** * This method returns a paragraph style by id * @param id the id of a specific paragraph style * @returns */ getById: (id: Id) => Promise>; /** * This method creates a new paragraph style * @returns the id of new paragraph style */ create: () => Promise>; /** * This method duplicates a paragraph style * @param id the id of a specific paragraph style * @returns the new paragraph style id */ duplicate: (id: Id) => Promise>; /** * This method updates a paragraph style * @param id the id of a specific paragraph style * @param properties The new paragraph style properties * @returns */ update: (id: Id, properties: ParagraphStyleUpdate) => Promise>; /** * This method renames a paragraph style * @param id the id of a specific paragraph style * @param name the new name of the paragraph style * @returns */ rename: (id: Id, name: string) => Promise>; /** * This method removes a paragraph style * @param id the id of a specific paragraph style * @returns */ remove: (id: Id) => Promise>; /** * This method changes positions of paragraph styles * @param order the position of the paragraph styles * @param ids the list of paragraph style ids * @returns */ move: (order: number, ids: Id[]) => Promise>; }