import { Compartment } from '@codemirror/state'; import { EditorView } from '@codemirror/view'; import { type MutableRefObject } from 'react'; /** * Configures the readonly functionality on the editor. * @param readOnly - flag pointing to whether spellcheck is enabled or not * @param viewRef - Ref object for the editor * @param keymapCompartment - */ export declare const configureReadOnly: (readOnly: boolean, viewRef: MutableRefObject, keymapCompartment: Compartment) => void;