import { Schema } from "@tiptap/pm/model"; //#region src/serializers/html/html.d.ts /** * The return type for the `createHTMLSerializer` function. */ type HTMLSerializerReturnType = { /** * Serializes an input Markdown string to an output HTML string. * * @param markdown The Markdown string to serialize. * * @returns The serialized HTML. */ serialize: (markdown: string) => string; }; /** * Create a Markdown to HTML serializer with the unified ecosystem for a rich-text editor, or use a * custom serializer for a plain-text editor. The editor schema is used to detect which nodes and * marks are available in the editor, and only parses the input with the minimal required plugins. * * @param schema The editor schema to be used for nodes and marks detection. * * @returns A normalized object for the HTML serializer. */ declare function createHTMLSerializer(schema: Schema): HTMLSerializerReturnType; /** * Returns a singleton instance of a HTML serializer based on the provided editor schema. * * @param schema The editor schema connected to the HTML serializer instance. * * @returns The HTML serializer instance for the given editor schema. */ declare function getHTMLSerializerInstance(schema: Schema): HTMLSerializerReturnType; //#endregion export { createHTMLSerializer, getHTMLSerializerInstance }; //# sourceMappingURL=html.d.ts.map