import { Editor, Element } from 'slate'; import { MarkTypes } from '../../constant/mark'; import { AngularEditor } from 'slate-angular'; export declare enum FontSizes { 'fontSize12' = "12", 'fontSize13' = "13", 'fontSize14' = "14", 'fontSize15' = "15", 'fontSize16' = "16", 'fontSize18' = "18", 'fontSize20' = "20", 'fontSize24' = "24", 'fontSize28' = "28", 'fontSize32' = "32", 'fontSize40' = "40", 'fontSize48' = "48" } export interface MarkEditor extends Editor { removeMark: (key: string, shouldChange?: boolean) => void; } export declare const PlaitMarkEditor: { getMarks(editor: AngularEditor): any; getMarksByElement(element: Element): any; isMarkActive(editor: AngularEditor, format: MarkTypes): boolean | undefined; toggleMark(editor: AngularEditor, format: MarkTypes): void; setFontSizeMark(editor: AngularEditor, size: FontSizes, defaultSize?: number): void; setColorMark(editor: AngularEditor, color: string, defaultTextColor?: string): void; }; export declare function setSelection(editor: AngularEditor): void;