// Types import type { Dispatch, RefObject, SetStateAction } from 'react'; import type { Editor as DraftEditor, EditorState } from 'draft-js'; export type State = EditorState; export type StateHandler = | Dispatch> | ((state: State) => void); export type EditorRef = RefObject | null; export type SyntheticClipboardEvent = React.ClipboardEvent<{}>; export type SyntheticKeyboardEvent = React.KeyboardEvent<{}>; export type SyntheticEvent = React.SyntheticEvent<{}>;