///
import { type IconName } from "@prismicio/editor-ui";
import type { RichText } from "@prismicio/types-internal/lib/customtypes";
import { Transaction } from "@tiptap/pm/state";
import type { ExtendedRichTextContent } from "./types";
interface Props {
id: string;
content: TContent | undefined;
field: RichText;
readOnly: boolean;
padding?: "normal" | "zero";
scroll?: "hidden" | "x-auto";
onContentChange: (content: TContent | undefined) => void;
/**
* Checks `editor.isEmpty` before calling `onContentChange`.
* - When `true`, the current structure of the document will be returned, even if it has no content.
* - When `false`, `undefined` will be returned.
* @default false
*/
shouldReturnEmptyContent?: boolean;
icon?: IconName;
"data-tag"?: string;
}
export declare function RichTextField(props: Props): JSX.Element | null;
export declare function isTransactionFromExternalUpdate(transaction: Transaction): boolean;
export {};