UNPKG

vue-shiki-monaco

Version:
42 lines (41 loc) 1.81 kB
import { ContextMenuItem } from '../../hooks/useContextMenu'; import { MonacoDiffProps } from './types'; import { BundledTheme } from 'shiki'; declare const _default: import('vue').DefineComponent<MonacoDiffProps, { getEditor: () => import("monaco-editor-core").editor.IStandaloneDiffEditor | null; focus: () => void | undefined; setTheme: (theme: BundledTheme) => Promise<void> | undefined; layout: () => void | undefined; enableAutoResize: () => void | undefined; disableAutoResize: () => void | undefined; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { change: (value: string) => any; ready: (editor: import("monaco-editor-core").editor.IStandaloneDiffEditor) => any; }, string, import('vue').PublicProps, Readonly<MonacoDiffProps> & Readonly<{ onChange?: ((value: string) => any) | undefined; onReady?: ((editor: import("monaco-editor-core").editor.IStandaloneDiffEditor) => any) | undefined; }>, { currentLanguage: import('shiki').BundledLanguage; showToolbar: boolean; height: string; languages: import('shiki').BundledLanguage[]; themes: BundledTheme[]; contextMenu: { enabled?: boolean; items?: string[] | "minimal" | "basic" | "full"; customItems?: ContextMenuItem[]; variant?: "classic" | "glass"; }; diffViewType: "default" | "inline" | "multi"; currentTheme: BundledTheme; autoResize: boolean; minimapContextMenu: { enabled?: boolean; items?: string[] | "minimal" | "basic" | "full"; customItems?: ContextMenuItem[]; variant?: "classic" | "glass"; }; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, { diffEditorRef: HTMLDivElement; }, HTMLDivElement>; export default _default;