import { Editor } from 'slate'; import { BuilderEditMode } from '../../state/modules/builder-edit-mode'; import { ControlInstance, type BoxDisplayModel, type RichTextValue } from '@makeswift/controls'; type ChangeBuilderEditModeMessage = { type: typeof RichTextControl.CHANGE_BUILDER_EDIT_MODE; payload: { editMode: BuilderEditMode; }; }; type InitializeEditorMessage = { type: typeof RichTextControl.INITIALIZE_EDITOR; value: RichTextValue; }; type ChangeEditorValueMessage = { type: typeof RichTextControl.CHANGE_EDITOR_VALUE; value: RichTextValue; }; type FocusMessage = { type: typeof RichTextControl.FOCUS; }; type BlurMessage = { type: typeof RichTextControl.BLUR; }; type UndoMessage = { type: typeof RichTextControl.UNDO; }; type RedoMessage = { type: typeof RichTextControl.REDO; }; type BoxModelChangeMessage = { type: typeof RichTextControl.CHANGE_BOX_MODEL; payload: { boxModel: BoxDisplayModel | null; }; }; type Message = ChangeBuilderEditModeMessage | InitializeEditorMessage | ChangeEditorValueMessage | FocusMessage | BlurMessage | UndoMessage | RedoMessage | BoxModelChangeMessage; export declare class RichTextControl extends ControlInstance { static readonly CHANGE_BUILDER_EDIT_MODE = "CHANGE_BUILDER_EDIT_MODE"; static readonly INITIALIZE_EDITOR = "INITIALIZE_EDITOR"; static readonly CHANGE_EDITOR_VALUE = "CHANGE_EDITOR_VALUE"; static readonly FOCUS = "FOCUS"; static readonly BLUR = "BLUR"; static readonly UNDO = "UNDO"; static readonly REDO = "REDO"; static readonly CHANGE_BOX_MODEL = "CHANGE_BOX_MODEL"; private editor; recv: (message: Message) => void; subscribe(_listener: () => void): () => void; isCompositeProp(): boolean; children(): ControlInstance[]; child(_key: string): ControlInstance | undefined; resolvesToRenderableNode(): boolean; setSlateEditor(editor: Editor): void; focus(): void; blur(): void; undo(): void; redo(): void; changeBoxModel(boxModel: BoxDisplayModel | null): void; } export {}; //# sourceMappingURL=control.d.ts.map