/**
 * 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 { JSX } from 'react';
import { type ErrorBoundaryType } from './shared/LegacyDecorators';
/**
 * Sets up rich text editing by wiring up the core rich text commands and
 * rendering the provided `contentEditable`, an optional `placeholder`, and any
 * decorator nodes (wrapped in the given `ErrorBoundary`). This is the standard
 * plugin for editors that support headings, lists, quotes, and other
 * block-level formatting.
 *
 * This is a legacy plugin. When building an editor with the extension API,
 * configure {@link RichTextExtension} instead.
 *
 * @returns The element tree to render inside your LexicalComposer.
 */
export declare function RichTextPlugin({ contentEditable, placeholder, ErrorBoundary, }: {
    contentEditable: JSX.Element;
    placeholder?: ((isEditable: boolean) => null | JSX.Element) | null | JSX.Element;
    ErrorBoundary: ErrorBoundaryType;
}): JSX.Element;
