import { EditorState, Selection, Transaction } from 'prosemirror-state'; import { Transform } from 'prosemirror-transform'; import { EditorView } from 'prosemirror-view'; import { Node, Schema } from 'prosemirror-model'; import { UICommand } from '@modusoperandi/licit-doc-attrs-step'; import type { Style } from './StyleRuntime'; export declare const STRONG = "strong"; export declare const EM = "em"; export declare const COLOR = "color"; export declare const FONTSIZE = "fontSize"; export declare const FONTNAME = "fontName"; export declare const STRIKE = "strike"; export declare const SUPER = "super"; export declare const TEXTHL = "textHighlight"; export declare const UNDERLINE = "underline"; export declare const ALIGN = "align"; export declare const LHEIGHT = "lineHeight"; export declare const SAFTER = "paragraphSpacingAfter"; export declare const SBEFORE = "paragraphSpacingBefore"; export declare const ATTR_OVERRIDDEN = "overridden"; export declare const INDENT = "indent"; export declare const NUMBERING = "hasNumbering"; export declare const LEVELBASEDINDENT = "isLevelbased"; export declare const LEVEL = "styleLevel"; export declare const BOLDPARTIAL = "boldPartial"; export declare function getCustomStyleCommands(customStyle: any): UICommand[]; export declare class CustomStyleCommand extends UICommand { isActive(): boolean; waitForUserInput(): Promise; executeWithUserInput(): boolean; cancel(): void; executeCustom(state: EditorState, tr: Transform): Transform; executeCustomStyleForTable(state: EditorState, tr: Transform): Transform; _customStyleName: string; _customStyle: any; _styleNameToCreate: any; _popUp: any; _level: number; constructor(customStyle: any, customStyleName: string, styleNameToCreate?: string); renderLabel: () => string; isEmpty: (obj: any) => boolean; isStyleEnabled: (state: EditorState, _view: EditorView, menuTitle: string) => boolean; isCustomStyleApplied(editorState: EditorState): string; executeClearStyle(state: EditorState, dispatch?: (tr: Transform | Transaction) => void, node?: any, startPos?: number, endPos?: number, newattrs?: any, selection?: Selection): boolean; execute: (state: EditorState, dispatch?: (tr: Transform) => void, view?: EditorView, event?: KeyboardEvent | MouseEvent) => boolean; showAlert(): void; clearCustomStyles(tr: Transform, editorState: EditorState): Transform; removeMarks(mark: any, tr: Transform, node: Node, from: number, to: number): Transform; editWindow(state: EditorState, view: EditorView, mode: number): void; jsonEditor(view: EditorView): void; createNewStyle(val: any, tr: Transaction, state: EditorState, dispatch: (tr: Transaction) => void, doc: Node): void; resetNumber(state: EditorState, dispatch?: (tr: Transform | Transaction) => void, startPos?: number, newattrs?: any): void; getCustomStyles(styleName: string, editorView: EditorView): void; createCustomObject(editorView: EditorView, mode: number): { styleName: any; mode: number; styles: {}; editorView: EditorView; }; } export declare const compareAttributes: (mark: any, style: any) => boolean; export declare function compareMarkWithStyle(mark: any, style: any, tr: any, startPos: any, _endPos: any, retObj: any): any; export declare function getMarkByStyleName(styleName: string, schema: Schema): any[]; export declare function applyStyleForTableColumnCell(styleProp: Style, styleName: string, state: EditorState, tr: Transform, node: Node, startPos: number, opt?: number): Transform; export declare function allowCustomLevelIndent(tr: Transform, startPos: number, styleName: string, delta: number): boolean; export declare function manageElementsAfterSelection(nodeArray: any, state: any, tr: any): any; export declare function insertParagraph(nodeAttrs: any, startPos: any, tr: any, index: any, state?: any): any; export declare function resetNodeAttrs(nodeAttrs: any, customStyle: any): any; export declare function addElementEx(nodeAttrs: any, state: any, tr: any, startPos: any, after: any, previousLevel: any, currentLevel?: any): { tr: any; level: number; counter: number; }; export declare function addElementAfter(nodeAttrs: any, state: any, tr: any, startPos: any, nextLevel: any): any; export declare function getStyleLevel(styleName: string): number; export declare function applyLatestStyle(styleName: string, state: EditorState, tr: Transform, node: Node, startPos: number, endPos: number, style?: Style, opt?: number): Transform; export declare function removeAllMarksExceptLinkForTableColumnCell(pos: number, node: Node, tr: Transform): Transform; export declare function removeAllMarksExceptLink(from: number, to: number, tr: Transform): Transform; export declare function handleRemoveMarks(tr: Transform, tasks: any): Transform; export declare function applyStyle(style: Style, styleName: string, state: EditorState, tr: Transform): Transform; export declare function applyStyleToEachNode(state: EditorState, from: number, to: number, tr: Transaction | Transform, style: Style, styleName: string, positions?: number[]): Transform; export declare function applyLineStyle(state: EditorState, tr: Transform, node: Node, startPos: number): Transform; export declare function addMarksToLine(tr: any, state: any, node: any, pos: any, boldSentence: any): any; export declare function getNode(_state: EditorState, from: number, to: number, tr: Transform): Node; export declare function updateDocument(state: EditorState, tr: Transform, styleName: string, style: Style): Transform; export declare function isCustomStyleAlreadyApplied(styleName: string, editorState: EditorState): boolean; export declare function isLevelUpdated(state: EditorState, styleName: string, style: Style): boolean;