import { n as LanguageServerLoggerOptions, t as LanguageServerLogger } from "./lsp-logger-BUoJZSqE.mjs"; import * as _$vscode_languageserver_textdocument0 from "vscode-languageserver-textdocument"; //#region src/client-options.d.ts interface EtsServerClientOptions { /** Debug mode. */ debug?: boolean; /** ETS specific options. */ ets?: { /** The currently ohos sdk path. If not exists the lsp will not work. */sdkPath: string | undefined; /** The currently hms sdk path. If not exists the lsp will not work. */ hmsPath: string | undefined; }; } //#endregion //#region src/sys-resource.d.ts interface SysResource { sys: SysResource.System; } declare namespace SysResource { interface System { color: Record; float: Record; string: Record; media: Record; symbol: Record; plural: Record; } function is(value: unknown): value is SysResource; function toEtsFormat(sysResource: SysResource): string[]; } //#endregion //#region src/language-server-config.d.ts interface LanguageServerConfigurator { getSdkPath(): string; getSysResource(force?: boolean): SysResource | null; getSysResourcePath(): string; getLocale(): string; } //#endregion //#region src/text-document.d.ts type SerializableTextDocument = Omit<_$vscode_languageserver_textdocument0.TextDocument, "getText" | "positionAt" | "offsetAt" | "lineCount"> & { text: string; }; //#endregion //#region src/ts-plugin-options.d.ts type GetAPI = (version: 0) => { configurePlugin(pluginName: PluginName, options: PluginOptions[PluginName]): void; }; interface TypescriptLanguageFeatures { getAPI?: GetAPI; } interface ETSPluginOptions { lspOptions: EtsServerClientOptions; } interface PluginOptions { "ets-typescript-plugin": ETSPluginOptions; } //#endregion //#region src/index.d.ts declare function typeAssert(_value: unknown): asserts _value is T; //#endregion export { ETSPluginOptions, EtsServerClientOptions, LanguageServerConfigurator, LanguageServerLogger, LanguageServerLoggerOptions, PluginOptions, SerializableTextDocument, SysResource, TypescriptLanguageFeatures, typeAssert };