/** * vue-codemirror6 * * @description CodeMirror6 Component for vue2 and vue3. * @author Logue * @license MIT * @version 1.8.0 * @see {@link https://github.com/logue/vue-codemirror6} */ import { type App } from 'vue-demi'; import { Meta } from './types/Meta.js'; /** CodeMirror Component */ declare const component: import("vue").DefineComponent; readonly default: ''; }; readonly theme: { readonly type: import("vue").PropType>; readonly default: () => {}; }; readonly dark: { readonly type: BooleanConstructor; readonly default: false; }; readonly basic: { readonly type: BooleanConstructor; readonly default: false; }; readonly minimal: { readonly type: BooleanConstructor; readonly default: false; }; readonly placeholder: { readonly type: import("vue").PropType; readonly default: undefined; }; readonly wrap: { readonly type: BooleanConstructor; readonly default: false; }; readonly tab: { readonly type: BooleanConstructor; readonly default: false; }; readonly indentUnit: { readonly type: StringConstructor; readonly default: undefined; }; readonly allowMultipleSelections: { readonly type: BooleanConstructor; readonly default: false; }; readonly tabSize: { readonly type: NumberConstructor; readonly default: undefined; }; readonly lineSeparator: { readonly type: StringConstructor; readonly default: undefined; }; readonly readonly: { readonly type: BooleanConstructor; readonly default: false; }; readonly disabled: { readonly type: BooleanConstructor; readonly default: false; }; readonly extensions: { readonly type: import("vue").PropType; readonly default: () => never[]; }; readonly phrases: { readonly type: import("vue").PropType>; readonly default: undefined; }; readonly lang: { readonly type: import("vue").PropType; readonly default: undefined; }; readonly linter: { readonly type: import("vue").PropType; readonly default: undefined; }; readonly linterConfig: { readonly type: ObjectConstructor; readonly default: () => {}; }; readonly forceLinting: { readonly type: BooleanConstructor; readonly default: false; }; readonly gutter: { readonly type: BooleanConstructor; readonly default: false; }; readonly gutterConfig: { readonly type: ObjectConstructor; readonly default: undefined; }; readonly tag: { readonly type: StringConstructor; readonly default: 'div'; }; readonly scrollIntoView: { readonly type: BooleanConstructor; readonly default: true; }; readonly preserveScrollPosition: { readonly type: BooleanConstructor; readonly default: false; }; readonly keymap: { readonly type: import("vue").PropType; readonly default: () => never[]; }; }>, { editor: import("vue").Ref; view: import("vue").ShallowRef; cursor: import("vue").WritableComputedRef; selection: import("vue").WritableComputedRef; focus: import("vue").WritableComputedRef; length: import("vue").Ref; json: import("vue").WritableComputedRef> | undefined, Record> | undefined>; diagnosticCount: import("vue").Ref; dom: HTMLElement | undefined; lint: () => void; forceReconfigure: () => void; getRange: (from?: number, to?: number) => string | undefined; getLine: (number: number) => string | undefined; lineCount: () => number; getCursor: () => number; listSelections: () => readonly import("@codemirror/state").SelectionRange[]; getSelection: () => string; getSelections: () => string[]; somethingSelected: () => boolean; replaceRange: (replacement: string | import("@codemirror/state").Text, from: number, to: number) => void; replaceSelection: (replacement: string | import("@codemirror/state").Text) => void; setCursor: (position: number) => void; setSelection: (anchor: number, head?: number) => void; setSelections: (ranges: readonly import("@codemirror/state").SelectionRange[], primary?: number) => void; extendSelectionsBy: (f: (range: import("@codemirror/state").SelectionRange) => number) => void; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { 'update:modelValue': (_value?: string | import("@codemirror/state").Text) => boolean; update: (_value: import("@codemirror/view").ViewUpdate) => boolean; ready: (_value: { view: import("codemirror").EditorView; state: import("@codemirror/state").EditorState; container: HTMLElement; }) => boolean; focus: (_value: boolean) => boolean; change: (_value: import("@codemirror/state").EditorState) => boolean; destroy: () => boolean; }, string, import("vue").PublicProps, Readonly; readonly default: ''; }; readonly theme: { readonly type: import("vue").PropType>; readonly default: () => {}; }; readonly dark: { readonly type: BooleanConstructor; readonly default: false; }; readonly basic: { readonly type: BooleanConstructor; readonly default: false; }; readonly minimal: { readonly type: BooleanConstructor; readonly default: false; }; readonly placeholder: { readonly type: import("vue").PropType; readonly default: undefined; }; readonly wrap: { readonly type: BooleanConstructor; readonly default: false; }; readonly tab: { readonly type: BooleanConstructor; readonly default: false; }; readonly indentUnit: { readonly type: StringConstructor; readonly default: undefined; }; readonly allowMultipleSelections: { readonly type: BooleanConstructor; readonly default: false; }; readonly tabSize: { readonly type: NumberConstructor; readonly default: undefined; }; readonly lineSeparator: { readonly type: StringConstructor; readonly default: undefined; }; readonly readonly: { readonly type: BooleanConstructor; readonly default: false; }; readonly disabled: { readonly type: BooleanConstructor; readonly default: false; }; readonly extensions: { readonly type: import("vue").PropType; readonly default: () => never[]; }; readonly phrases: { readonly type: import("vue").PropType>; readonly default: undefined; }; readonly lang: { readonly type: import("vue").PropType; readonly default: undefined; }; readonly linter: { readonly type: import("vue").PropType; readonly default: undefined; }; readonly linterConfig: { readonly type: ObjectConstructor; readonly default: () => {}; }; readonly forceLinting: { readonly type: BooleanConstructor; readonly default: false; }; readonly gutter: { readonly type: BooleanConstructor; readonly default: false; }; readonly gutterConfig: { readonly type: ObjectConstructor; readonly default: undefined; }; readonly tag: { readonly type: StringConstructor; readonly default: 'div'; }; readonly scrollIntoView: { readonly type: BooleanConstructor; readonly default: true; }; readonly preserveScrollPosition: { readonly type: BooleanConstructor; readonly default: false; }; readonly keymap: { readonly type: import("vue").PropType; readonly default: () => never[]; }; }>> & Readonly<{ onChange?: ((_value: import("@codemirror/state").EditorState) => any) | undefined; onDestroy?: (() => any) | undefined; onFocus?: ((_value: boolean) => any) | undefined; onReady?: ((_value: { view: import("codemirror").EditorView; state: import("@codemirror/state").EditorState; container: HTMLElement; }) => any) | undefined; onUpdate?: ((_value: import("@codemirror/view").ViewUpdate) => any) | undefined; "onUpdate:modelValue"?: ((_value?: string | import("@codemirror/state").Text | undefined) => any) | undefined; }>, { readonly modelValue: string | import("@codemirror/state").Text; readonly theme: Record; readonly dark: boolean; readonly basic: boolean; readonly minimal: boolean; readonly placeholder: string | HTMLElement; readonly wrap: boolean; readonly tab: boolean; readonly indentUnit: string; readonly allowMultipleSelections: boolean; readonly tabSize: number; readonly lineSeparator: string; readonly readonly: boolean; readonly disabled: boolean; readonly extensions: import("@codemirror/state").Extension[]; readonly phrases: Record; readonly lang: import("@codemirror/language").LanguageSupport; readonly linter: import("@codemirror/lint").LintSource; readonly linterConfig: Record; readonly forceLinting: boolean; readonly gutter: boolean; readonly gutterConfig: Record; readonly tag: string; readonly scrollIntoView: boolean; readonly preserveScrollPosition: boolean; readonly keymap: import("@codemirror/view").KeyBinding[]; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; /** * Vue plugin install function that registers the CodeMirror component globally. * * @param app - Vue application instance. */ declare const installCodeMirror: (app: App) => void; export type { CodeMirrorExposed } from './types/CodeMirrorExposed.js'; export { component as default, installCodeMirror as install, Meta };