/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type * as ts from "typescript"; import type { TsModule } from "./types.js"; /** Structural subset of `ts.server.PluginCreateInfo` — keeps the package free * of a tsserverlibrary type dependency. */ export interface TsserverPluginCreateInfo { languageService: ts.LanguageService; project: { getCurrentDirectory(): string; }; config?: { disabled?: readonly string[]; }; } /** * tsserver plugin factory. Loaded by the TypeScript server via a * `typescriptServerPlugins` contribution (VS Code) or a tsconfig * `compilerOptions.plugins` entry; the host's `typescript` is injected. */ export declare function init(modules: { typescript: TsModule; }): { create(info: TsserverPluginCreateInfo): ts.LanguageService; }; export default init; //# sourceMappingURL=tsserver-plugin.d.ts.map