import { WorkspaceVisibility } from '@edifice.io/client'; import { Content, Extensions, FocusPosition, JSONContent } from '@tiptap/react'; export interface EditorRef { /** Get the current content. */ getContent: (as: 'html' | 'json' | 'plain') => undefined | string | JSONContent; /** Get speech synthetisis current state */ isSpeeching: () => boolean; /** [De]activate speech synthetisis */ toogleSpeechSynthetisis: () => boolean; /** * Set focus to the editor * @param position */ setFocus: (position: FocusPosition) => void; } /** * Editor component properties */ export interface EditorProps { /** * (Optional) id of the HTML element. * Useful with an external `