import { VirtualCode } from "@volar/language-core"; import { VueCompilerOptions } from "@vue/language-core"; import "muggle-string"; import { VineDiagnostic, VineFileCtx } from "@vue-vine/compiler"; import { createLanguageServicePlugin } from "@volar/typescript/lib/quickstart/createLanguageServicePlugin"; import * as ts$1 from "typescript"; import ts from "typescript"; import { LanguagePlugin } from "@volar/language-server"; import { URI } from "vscode-uri"; //#region typescript-plugin/types.d.ts type _pipelineReq = {} & T; type _pipelineResp = {} & T; type PipelineRequest = (_pipelineReq<{ type: "getComponentPropsRequest"; fileName: string; tagName: string; }>) | (_pipelineReq<{ type: "getElementAttrsRequest"; fileName: string; tagName: string; }>) | (_pipelineReq<{ type: "getComponentDirectivesRequest"; fileName: string; triggerAtFnName: string; }>) | (_pipelineReq<{ type: "getDocumentHighlightRequest"; fileName: string; position: number; }>) | (_pipelineReq<{ type: "projectInfoRequest"; file: string; needFileNameList: boolean; }>); type PipelineRequestInstance = PipelineRequest & { type: T; }; type PipelineResponse = (_pipelineResp<{ type: "getComponentPropsResponse"; tagName: string; fileName: string; props: string[]; }>) | (_pipelineResp<{ type: "getElementAttrsResponse"; tagName: string; fileName: string; attrs: string[]; }>) | (_pipelineResp<{ type: "getComponentDirectivesResponse"; fileName: string; triggerAtFnName: string; directives: string[]; }>) | (_pipelineResp<{ type: "getDocumentHighlightResponse"; result: ts$1.DocumentHighlights[]; }>) | (_pipelineResp<{ type: "projectInfoResponse"; result: ts$1.server.protocol.ProjectInfo | null; }>); type PipelineResponseInstance = PipelineResponse & { type: T; errMsg?: string; }; //#endregion //#region src/injectTypes.d.ts interface SystemHost { fileExists: (path: string) => boolean; writeFile?: (path: string, data: string) => void; } declare function setupGlobalTypes(vueOptions: VueCompilerOptions, host: SystemHost): VueCompilerOptions["globalTypesPath"]; //#endregion //#region src/shared.d.ts interface VueVineVirtualCode extends VirtualCode { __VUE_VINE_VIRTUAL_CODE__: true; fileName: string; vineMetaCtx: { vineCompileErrs: VineDiagnostic[]; vineCompileWarns: VineDiagnostic[]; vineFileCtx: VineFileCtx; }; } declare function vlsInfoLog(...msgs: any[]): void; declare function VLS_ErrorLog(err: any, tag: string): void; declare function isVueVineVirtualCode(vCode: any): vCode is VueVineVirtualCode; //#endregion //#region src/virtual-code.d.ts declare function createVueVineVirtualCode(ts: typeof ts$1, fileId: string, snapshotContent: string, compilerOptions: ts.CompilerOptions, vueCompilerOptions: VueCompilerOptions, _target: "extension" | "tsc"): VueVineVirtualCode; //#endregion //#region src/index.d.ts interface VineLanguagePluginOptions { compilerOptions: ts$1.CompilerOptions; vueCompilerOptions: VueCompilerOptions; target?: "extension" | "tsc"; } declare function createVueVineLanguagePlugin(ts: typeof ts$1, options: VineLanguagePluginOptions): LanguagePlugin; //#endregion export { PipelineRequest, PipelineRequestInstance, PipelineResponse, PipelineResponseInstance, VLS_ErrorLog, VueVineVirtualCode, createVueVineLanguagePlugin, createVueVineVirtualCode, isVueVineVirtualCode, setupGlobalTypes, vlsInfoLog };