import type { ConfigData } from 'wikiparser-node'; import type * as Monaco from 'monaco-editor'; import type { ThemeRegistrationRaw } from 'shiki'; import type { LiveOption } from './linter.ts'; /** * Register the language service for Wikitext * @param monaco Monaco Editor global * @param parserConfig Configuration for [WikiParser-Node](https://github.com/bhsd-harry/wikiparser-node). * Please set this to `true` if used in a MediaWiki site. * @param langs i18n language codes with a preferred order * @param cdn CDN URL for downloading WikiParser-Node, default to https://fastly.jsdelivr.net/npm/wikiparser-node * @param themes Additional Shiki themes * @param opt WikiLint options. */ declare const _default: (monaco: typeof Monaco, parserConfig?: ConfigData | string | boolean, langs?: string | string[], cdn?: string, themes?: ThemeRegistrationRaw[], opt?: LiveOption) => Promise; export default _default; /** * Register ESLint for JavaScript * @param monaco Monaco Editor global * @param cdn CDN URL for downloading ESLint, default to https://fastly.jsdelivr.net/npm/@bhsd/eslint-browserify@10 * @param opt ESLint options */ export declare const registerJavaScript: (monaco: typeof Monaco, cdn?: string, opt?: LiveOption) => void; /** * Register Stylelint for CSS * @param monaco Monaco Editor global * @param cdn CDN URL for downloading Stylelint, * default to https://fastly.jsdelivr.net/npm/@bhsd/stylelint-browserify * @param opt Stylelint options */ export declare const registerCSS: (monaco: typeof Monaco, cdn?: string, opt?: LiveOption) => void; /** * Register the Luacheck for Lua * @param monaco Monaco Editor global * @param cdn CDN URL for downloading Luacheck, default to https://fastly.jsdelivr.net/npm/luacheck-browserify */ export declare const registerLua: (monaco: typeof Monaco, cdn?: string) => void; /** * Register the Vue syntax * @param monaco Monaco Editor global * @param themes Additional Shiki themes */ export declare const registerVue: (monaco: typeof Monaco, themes?: ThemeRegistrationRaw[]) => Promise;