import * as i0 from '@angular/core'; import { Provider } from '@angular/core'; import { Transformer, TextMatchTransformer } from '@lexical/markdown'; import { RichTextFormatter } from '@lucca-front/ng/forms/rich-text-input'; import { LexicalEditor } from 'lexical'; declare const DEFAULT_MARKDOWN_TRANSFORMERS: Transformer[]; declare class MarkdownFormatter extends RichTextFormatter { #private; constructor(transformers?: Transformer[]); registerTextPlugin(editor: LexicalEditor): () => void; parse(editor: LexicalEditor, markdown?: string | null): void; format(editor: LexicalEditor): string; } declare function provideLuRichTextMarkdownFormatter(transformers?: Transformer[]): Provider; declare class MarkdownFormatterDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class MarkdownFormatterWithTagsDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Transformer for tag nodes * It will match the following pattern `{{Tag}}` and create a TagNode (using `replace` function). * It will export the tag node to markdown (as `{{Tag}}`) using the `export` function. * * @docs https://github.com/facebook/lexical/tree/main/packages/lexical-markdown#transformers */ declare const TAGS: TextMatchTransformer; export { DEFAULT_MARKDOWN_TRANSFORMERS, MarkdownFormatter, MarkdownFormatterDirective, MarkdownFormatterWithTagsDirective, TAGS, provideLuRichTextMarkdownFormatter };