import type { Plugin } from 'vite'; import type { EditorFeature, EditorLanguage, NegatedEditorFeature, IFeatureDefinition } from 'monaco-editor/esm/metadata.js'; import type { BundledLanguage, BundledTheme } from 'shiki'; type Options = { /** * Include only a subset of the languages supported. * * @type {EditorLanguage[]} * @defaultValue All languages shipped with monaco-editor * @example * ```ts * // Only include JavaScript and JSON support * languages: ['javascript', 'json'] * ``` */ languages?: EditorLanguage[]; /** * Custom languages (outside of the ones shipped with the `monaco-editor`). * Use this to add support for languages not included in monaco-editor by default. * * @type {IFeatureDefinition[]} * @example * ```ts * // Add yaml support from `monaco-yaml` * customLanguages: [ * { * label: 'yaml', * entry: 'monaco-yaml', * worker: { * id: 'monaco-yaml/yamlWorker', * entry: 'monaco-yaml/yaml.worker', * }, * }, * ] * ``` */ customLanguages?: IFeatureDefinition[]; /** * Include only a subset of the editor features. * Prefix a feature with `!` to exclude it instead. * * @type {Array} * @defaultValue All features shipped with monaco-editor * @example * ```ts * // Exclude context menu and find features * features: ['!contextmenu', '!find'] * * // Or only include specific features * features: ['coreCommands', 'coreActions'] * ``` */ features?: Array; /** * Shiki configuration options. * @type {{ themes?: BundledTheme[]; langs?: BundledLanguage[] }} */ shiki?: { /** * Languages to include for Shiki syntax highlighting. * * @type {BundledLanguage[]} * @defaultValue The same languages specified in the`languages` option above * @example * ```ts * // Only include JavaScript and JSON support * langs: ['javascript', 'json'] * ``` */ langs?: BundledLanguage[]; /** * Themes to include for Shiki syntax highlighting. * * @type {BundledTheme[]} * @defaultValue ['catppuccin-latte', 'catppuccin-mocha'] * @example * ```ts * // Include the 'nord' theme * themes: ['nord'] * ``` */ themes?: BundledTheme[]; }; }; export default function plugin(options?: Options): Plugin; export {}; //# sourceMappingURL=index.d.ts.map