import React, { FocusEventHandler } from 'react'; import { List } from 'immutable'; import { ReactEditor } from 'slate-react'; import { EditablePluginsProps, RenderLeaf } from '@udecode/slate-plugins'; import { Descendant } from 'slate'; import { WidgetProps, WithValue } from '@xy-form/ui-schema'; import { ElementMapperType } from '@xy-form/material-slate/SlateElements/ElementMapper'; import { withPluginsType } from '@xy-form/material-slate/Slate/slatePlugins'; export type BulletedListElement = { type: string; children: Descendant[]; }; export interface SlateRendererProps { initialValue?: any; } export type editorEnableOnly = List; export type SlateHocType = (editor: T) => T; declare let SlateRenderer: React.ComponentType; export { SlateRenderer };