import type { MarkdownParserMentionConfiguration } from './markdown-parser-mention-configuration'; export interface ParseResult { fragment: HTMLElement | DocumentFragment; mentionedHrefs: string[]; } /** * Provides markdown parser for rich text components */ export declare class RichTextMarkdownParser { private static readonly mentionedHrefs; private static readonly updatedSchema; private static readonly markdownParser; private static readonly domSerializer; /** * The markdown parser is static (shared across all rich text components) because it is expensive to create. * To configure parse calls with the mention configurations which can be unique per component instance * we store static configuration in this member and access it from Prosemirror callbacks. */ private static mentionConfigs?; /** * This function takes a markdown string, parses it using the ProseMirror MarkdownParser, serializes the parsed content into a * DOM structure using a DOMSerializer, and returns the serialized result. * If the markdown parser returns null, it will clear the viewer component by creating an empty document fragment. */ static parseMarkdownToDOM(value: string, markdownParserMentionConfig?: MarkdownParserMentionConfiguration[]): ParseResult; private static initializeMarkdownParser; private static getCustomSchemaConfiguration; private static setup; private static cleanup; private static startsWithHttpOrHttps; }