import * as react from 'react'; import { ReactNode, RefObject } from 'react'; import { R as RenderExtension } from './extensions-6PVd3-vB.js'; import { F as FieldMode } from './inputs.types-vl3PAc4q.js'; import './types-8Sv0rCjw.js'; interface EditorAction { icon: ReactNode; label: string; command: string; commandArg?: string; active?: boolean; } interface EditorToolbarProps { actions?: EditorAction[]; onAction?: (command: string) => void; children?: ReactNode; className?: string; /** * Append a "Source" toggle (reveals the raw HTML/Markdown behind the editor) * to the right of the default toolbar. Ignored when `children` are supplied — * custom toolbars compose their own ``. * @default true */ showSourceToggle?: boolean; } interface EditorContentProps { className?: string; /** Max height in px before scrolling. When set, content area becomes scrollable. */ maxHeight?: number; /** Class names applied to the raw-source `