UNPKG

483 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, in a way that re-renders the
6 * context whenever changes occur.
7 */
8export declare const SlateContext: import("react").Context<[ReactEditor] | null>;
9/**
10 * Get the current editor object from the React context.
11 */
12export declare const useSlate: () => Editor;
13//# sourceMappingURL=use-slate.d.ts.map
\No newline at end of file