import { Editor } from '@milkdown/core'; import { RefObject } from 'react'; export declare function useEditor(containerRef: RefObject, defaultValue: string, readOnly?: boolean): { status: "loading" | "loaded"; milkdown: Editor | undefined; get: () => string | undefined; flush: () => void; recoverSelection: () => void; };