import { default as React } from 'react'; import { AnyRichTextComponentDefinition } from '../registry/types'; import { AttributeValues } from '../utils/componentAttrs'; interface ComponentDialogProps { open: boolean; mode: 'insert' | 'edit'; definition: AnyRichTextComponentDefinition; options: Record; initialAttrs: AttributeValues; onClose: () => void; onSubmit: (attrs: AttributeValues) => void; } /** * Insert/edit dialog for one rich-text component: the definition's own form when it has one, the generated one otherwise. * Mount it only while it is open, so each session starts from the current `initialAttrs`. */ export declare const ComponentDialog: React.FC; export default ComponentDialog;