/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import { type ElementNode } from 'lexical'; import { type TextFormatTransformer, type Transformer } from './MarkdownTransformers.js'; export type TextFormatTransformersIndex = Readonly<{ fullMatchRegExpByTag: Readonly>; openTagsRegExp: RegExp; transformersByTag: Readonly>; }>; /** * Parses a markdown string and appends the resulting nodes to `container`. * Does not clear the container or touch the selection — callers handle that. */ export declare function $importMarkdownNodes(markdownString: string, container: ElementNode, transformers: Transformer[], shouldPreserveNewLines?: boolean): void;