import { Editor, Extension, JSONContent } from '@tiptap/core'; import { Node as ProseMirrorNode, Schema, DOMParser, DOMSerializer, ParseOptions } from '@tiptap/pm/model'; export declare class Transformer { schema: Schema; parser: DOMParser; serializer: DOMSerializer; constructor(schema: Schema); htmlToNode(html: string, options?: ParseOptions): ProseMirrorNode; nodeToHTML(node: ProseMirrorNode): string; htmlToJSON(html: string): JSONContent; jsonToHTML(doc: JSONContent): string; nodeToJSON(node: ProseMirrorNode): JSONContent; jsonToNode(doc: JSONContent): ProseMirrorNode; markdownToHTML(markdown: string, editor: Editor): string; markdownToNode(markdown: string, editor: Editor): ProseMirrorNode; markdownToJSON(markdown: string, editor: Editor): JSONContent; nodeToMarkdown(node: ProseMirrorNode, editor: Editor): string; jsonToMarkdown(doc: JSONContent, editor: Editor): string; htmlToMarkdown(html: string, editor: Editor): string; markdownToMarkdown(markdown: string, editor: Editor): string; htmlToHTML(html: string): string; static fromSchema(schema: Schema): Transformer; static fromExtensions(extensions: Extension[]): Transformer; } //# sourceMappingURL=transformer.d.ts.map