import { Schema } from "@tiptap/pm/model"; //#region src/serializers/markdown/markdown.d.ts /** * The return type for the `createMarkdownSerializer` function. */ type MarkdownSerializerReturnType = { /** * Serializes an input HTML string to an output Markdown string. * * @param html The HTML string to serialize. * * @returns The serialized Markdown. */ serialize: (html: string) => string; }; /** * The bullet list marker for both standard and task list items. */ /** * Create an HTML to Markdown serializer with the Turndown library for both a rich-text editor, and * 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 rules. * * **Note:** Unlike the HTML serializer, built-in rules that are not supported by the schema are not * disabled because if the schema does not support certain nodes/marks, the parsing rules don't have * valid HTML elements to match in the editor HTML output. * * @param schema The editor schema to be used for nodes and marks detection. * * @returns A normalized object for the Markdown serializer. */ declare function createMarkdownSerializer(schema: Schema): MarkdownSerializerReturnType; /** * Returns a singleton instance of a Markdown serializer based on the provided editor schema. * * @param schema The editor schema connected to the Markdown serializer instance. * * @returns The Markdown serializer instance for the given editor schema. */ declare function getMarkdownSerializerInstance(schema: Schema): MarkdownSerializerReturnType; //#endregion export { createMarkdownSerializer, getMarkdownSerializerInstance }; //# sourceMappingURL=markdown.d.ts.map