import { Node as ProsemirrorNode, Slice } from 'prosemirror-model'; import { EditorView } from 'prosemirror-view'; import { ISetHTMLOptions, SylApi } from './api'; import { SylPlugin } from './schema'; /** * get & setHTML */ declare const insertEmptyPTagAtTheEndOfHtml: (div: HTMLElement) => void; declare const removeBrInEnd: (doc: ProsemirrorNode | Slice) => Slice | ProsemirrorNode; declare const IG_TAG = "ignoretag"; declare const IG_EL = "ignoreel"; interface IFormatHTMLConfig { mergeEmpty?: boolean; keepLastLine?: boolean; } declare const handleDOMSpec: (dom: HTMLElement) => HTMLElement; declare const formatGetHTML: (root: HTMLElement, config: IFormatHTMLConfig, sylPlugins: SylPlugin[]) => string; declare const formatSetHTML: (html: string, config: IFormatHTMLConfig) => HTMLElement; declare const transformCard: (docNode: ProsemirrorNode, view: EditorView, sylPlugins: SylPlugin[]) => ProsemirrorNode; declare const parseHTML: (html: string, adapter: SylApi, config: ISetHTMLOptions) => ProsemirrorNode; export { formatGetHTML, formatSetHTML, handleDOMSpec, IG_EL, IG_TAG, insertEmptyPTagAtTheEndOfHtml, parseHTML, removeBrInEnd, transformCard, };