import type { Editor } from "@tiptap/core"; interface ContentEditableProps { /** The raw text or HTML content */ content: string; /** * Bump the contentVersion when you need to reset/resync the content from the outside, * for instance when the content is a radically different thing. * This is pretty much like except the Tiptap Editor remains mounted and doesn't bug out/flicker. * tiptap doesn't officially support being controlled and it results in cursor/concurrency issues. * If you do contentVersion={content}, this is essentially like controlling the component * from the parent but it only works well for a readOnly ContentEditable. */ contentVersion?: string | number; readOnly?: boolean; placeholder?: string; multiline?: boolean; padding?: boolean; /** Overrides the default styles of HTML tags */ decorations?: Decorations; onChange?: (editor: Editor) => void; onBlur?: (editor: Editor) => void; } export declare function ContentEditable(props: ContentEditableProps): JSX.Element; interface Decorations { em?: "normal" | "highlight"; p?: "normal" | "emphasized"; } export {};