import * as i0 from '@angular/core'; import { Provider } from '@angular/core'; import { RichTextFormatter } from '@lucca-front/ng/forms/rich-text-input'; import { TextNode, LexicalEditor } from 'lexical'; interface PlainTextTransformer { regExp: RegExp; replace: (texNode: TextNode, match: RegExpMatchArray) => void; } /** * Transformer for tag nodes * It will match the following pattern `{{Tag}}` and create a TagNode (using `replace` function). * */ declare const PLAINTEXT_TAGS: PlainTextTransformer; declare class PlainTextFormatter extends RichTextFormatter { #private; constructor(transformers?: PlainTextTransformer[]); registerTextPlugin(editor: LexicalEditor): () => void; parse(editor: LexicalEditor, text?: string | null): void; format(editor: LexicalEditor): string; } declare function provideLuRichTextPlainTextFormatter(transformers?: PlainTextTransformer[]): Provider; declare class PlainTextFormatterWithTagsDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export { PLAINTEXT_TAGS, PlainTextFormatter, PlainTextFormatterWithTagsDirective, provideLuRichTextPlainTextFormatter }; export type { PlainTextTransformer };