import { StateType } from '../editor/wrapper'; import { MutableRefObject } from 'react'; /** * 上下文数据类型 */ export type EditorContextType = { /** * 编辑器状态数据 */ state: StateType; /** * 编辑器内鼠标是否按下 */ isMouseDown: boolean; /** * 编辑器元素 */ wrapperRef: MutableRefObject; /** * 翻译函数 */ t: (key: string) => string; }; export declare const EditorContext: import('react').Context; export declare const useEditor: () => EditorContextType;