import type { EditorConfig } from '../config'; import { TextSelection } from 'prosemirror-state'; import type { NodeView } from 'prosemirror-view'; export default class CodeBlockNodeView implements NodeView { private config; dom: HTMLElement; contentDOM: HTMLElement; private node; private view; private getPos; private incomingChanges; private updating; private cm; private suggestionMarkers; private inputLang; private inputAno; private inputName; constructor(node: any, view: any, getPos: any, config: EditorConfig['codeBlockConfig']); forwardSelection(): void; asProseMirrorSelection(doc: any): TextSelection; setSelection(anchor: any, head: any): void; valueChanged(): void; codeMirrorKeymap(): any; maybeEscape(unit: any, dir: any, view: any): any; update(node: any): boolean; private renderSuggestions; selectNode(): void; stopEvent(): boolean; private noToolbar; private createToolbar; private createReadonlyToolbar; updateFromAttrs(): void; } export declare function computeChange(oldVal: any, newVal: any): { from: number; to: any; text: any; };