import { EditorOverlay } from './editor-overlay'; import { RichChangeKind, RichCommand } from './rich-surface'; import { MarkdownEditorSelection, MarkdownTextChange } from './types'; import { EditorView } from '@codemirror/view'; type __VLS_Props = { /** Read once, when the view is created; later edits arrive through `applyChanges`. */ doc: string; editable: boolean; placeholder: string; ariaLabel: string; dark: boolean; math: boolean; highlight: boolean; callouts: boolean; emoji: boolean; files?: (files: File[], at: number) => boolean; }; /** * Changes already in the shell's document; `doc` is the result. The selection * maps through them, or moves to `selection`. */ declare function applyChanges(changes: MarkdownTextChange[], doc: string, selection?: MarkdownEditorSelection | null, scroll?: boolean): void; declare function setSelection(selection: MarkdownEditorSelection, scroll?: boolean): void; /** Client box of the selection: the caret, or the lines it spans. */ declare function selectionRect(): { left: number; top: number; right: number; bottom: number; } | null; declare const _default: import('vue').DefineComponent<__VLS_Props, { applyChanges: typeof applyChanges; getDoc: () => string; getSelection: () => MarkdownEditorSelection | null; setSelection: typeof setSelection; focus: () => void | undefined; blur: () => void | undefined; hasFocus: () => boolean; setOverlay: (overlay: EditorOverlay) => void | undefined; selectionRect: typeof selectionRect; scrollToPos: (pos: number) => void; getView: () => EditorView | null; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & { selection: () => any; blur: () => any; change: (changes: MarkdownTextChange[], before: MarkdownEditorSelection, after: MarkdownEditorSelection, kind: RichChangeKind) => any; focus: () => any; ready: () => any; command: (command: RichCommand) => any; }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{ onSelection?: (() => any) | undefined; onBlur?: (() => any) | undefined; onChange?: ((changes: MarkdownTextChange[], before: MarkdownEditorSelection, after: MarkdownEditorSelection, kind: RichChangeKind) => any) | undefined; onFocus?: (() => any) | undefined; onReady?: (() => any) | undefined; onCommand?: ((command: RichCommand) => any) | undefined; }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, { host: HTMLDivElement; }, HTMLDivElement>; export default _default;