import type { ReactNode } from "react"; import type { SlotProps } from "../slotProps.ts"; export type HtmlEditorProps = SlotProps & { className?: string; /** Initial only. Remount with a key to switch documents. */ defaultValue?: string; icons?: Readonly>; isDisabled?: boolean; isReadOnly?: boolean; /** Omit inside a Field, which supplies the real label. */ label?: string; /** Hidden form control; its original bytes survive until an edit. */ name?: string; onChange?: (value: string) => void; toolbarLabel?: string; }; /** * A rich editor for records already stored as HTML. Sanitization is * a projection for display and editing, not a migration: mounting, * selecting, focusing and submitting an untouched form never emit * normalized HTML. ProseMirror owns document edits and their undo * history; external defaults never replace that document. */ export declare const HtmlEditor: ({ className, defaultValue, icons, isDisabled, isReadOnly, label, name, onChange, toolbarLabel, ...slotProps }: HtmlEditorProps) => ReactNode; //# sourceMappingURL=HtmlEditor.d.ts.map