import { Extension, Transaction, StateField } from '@codemirror/state'; import { DecorationSet } from '@codemirror/view'; import { EditorOverlay } from './editor-overlay'; import { RichChangeKind, RichCommand } from './rich-surface'; /** * CodeMirror pieces of the source mode. Only the lazily loaded source runtime * imports this module, so none of it reaches a page that never opens the * Markdown source. */ /** Changes the shell applied: they are already in its document and must not be reported back. */ export declare const externalChange: import('@codemirror/state').AnnotationType; export declare function changeKind(tr: Transaction): RichChangeKind; export declare const setSourceOverlay: import('@codemirror/state').StateEffectType; export declare const sourceOverlayField: StateField; export declare const sourceTheme: Extension; export declare const sourceHighlight: Extension; export declare function sourceLanguage(math: boolean, highlight: boolean, callouts: boolean): Extension; export declare function emojiCompletion(): Extension; export interface SourceInputHandlers { command: (command: RichCommand) => void; /** Image files pasted or dropped at a source position; false when nothing takes them. */ files: (files: File[], at: number) => boolean; math: () => boolean; } export declare function sourceInput(handlers: SourceInputHandlers): Extension;