import type { EditorOptions } from '@tiptap/core'; import { Editor } from '@tiptap/core'; export type EditorRef = Editor | ((editor: Editor) => void); export type BaseEditorOptions = Omit, 'element'>; export interface UseEditorOptions extends BaseEditorOptions { element: T; } export declare function createEditorTransaction(instance: () => V, read: (value: V) => T): () => T; export default function useEditor(props: () => UseEditorOptions): () => Editor | undefined; export declare function useEditorHTML(editor: () => V): () => string | undefined; export declare function useEditorJSON>(editor: () => V): () => R | undefined; export declare function useEditorIsActive>(editor: () => V, ...args: [name: () => string, options?: R] | [options: R]): () => boolean | undefined; export declare function useEditorIsEmpty(editor: () => V): () => boolean | undefined; export declare function useEditorIsEditable(editor: () => V): () => boolean | undefined; export declare function useEditorIsFocused(editor: () => V): () => boolean | undefined; //# sourceMappingURL=Editor.d.ts.map