UNPKG

419 BTypeScriptView Raw
1/// <reference types="react" />
2import { Editor } from 'slate';
3import { ReactEditor } from '../plugin/react-editor';
4/**
5 * A React context for sharing the editor object.
6 */
7export declare const EditorContext: import("react").Context<ReactEditor | null>;
8/**
9 * Get the current editor object from the React context.
10 */
11export declare const useSlateStatic: () => Editor;
12//# sourceMappingURL=use-slate-static.d.ts.map
\No newline at end of file