import type { CSSProperties, ReactElement } from 'react';
import type { EditorHandle } from './use-editor.js';
/** Props for {@link EditorContent}. */
export interface EditorContentProps {
/** The handle from {@link useEditor}; this component mounts the editor into its div. */
readonly editor: EditorHandle;
/** Class for the host div (the element that becomes `contenteditable`). */
readonly className?: string;
/** Inline styles for the host div. */
readonly style?: CSSProperties;
}
/**
* The editor's host element: renders one `
` and mounts the web editor
* into it after commit. SSR-safe — server rendering produces just the empty
* div; the editor (DOM listeners, contenteditable, reconciler) is created only
* in the browser effect.
*
* Uses `useEffect` rather than `useLayoutEffect` deliberately: mounting only
* attaches listeners and renders content (no layout read that must beat
* paint), and `useEffect` avoids the SSR `useLayoutEffect` warning. On
* cleanup the editor is destroyed and the handle reset, so remounting (incl.
* React StrictMode's mount → unmount → mount) yields a fresh working editor.
*/
export declare function EditorContent({ editor, className, style }: EditorContentProps): ReactElement;
//# sourceMappingURL=editor-content.d.ts.map