import { BaseCommand } from '@salesforce/b2c-tooling-sdk/cli'; interface TsserverPluginInfo { /** TS server plugin package name (use as `name` in tsserver init_options.plugins). */ pluginName: string; /** * Probe location (use as `location` in tsserver init_options.plugins). TypeScript * resolves the plugin via `/node_modules/`, so this is the * parent of `node_modules` rather than the package directory itself. */ pluginPath: string; /** Absolute directory containing the bundled dw/* TypeScript definitions. */ typesPath: string; /** Plugin/types bundle version, when available. */ version?: string; } /** * Print absolute paths to the bundled @salesforce/b2c-script-types TypeScript * Server plugin and types directory. Useful for editor integrations (Neovim, * Helix, Zed, etc.) that need to wire up the plugin via LSP init_options. * * Performs no filesystem writes — purely a metadata lookup. */ export default class SetupIdeTsserverPlugin extends BaseCommand { static description: string; static enableJsonFlag: boolean; static examples: string[]; static flags: { 'log-level': import("@oclif/core/interfaces").OptionFlag<"trace" | "debug" | "info" | "warn" | "error" | "silent" | undefined, import("@oclif/core/interfaces").CustomOptions>; debug: import("@oclif/core/interfaces").BooleanFlag; json: import("@oclif/core/interfaces").BooleanFlag; jsonl: import("@oclif/core/interfaces").BooleanFlag; lang: import("@oclif/core/interfaces").OptionFlag; config: import("@oclif/core/interfaces").OptionFlag; instance: import("@oclif/core/interfaces").OptionFlag; 'project-directory': import("@oclif/core/interfaces").OptionFlag; 'extra-query': import("@oclif/core/interfaces").OptionFlag; 'extra-body': import("@oclif/core/interfaces").OptionFlag; 'extra-headers': import("@oclif/core/interfaces").OptionFlag; }; run(): Promise; private isPackageDir; /** * Resolve the bundled b2c-script-types package. tsserver looks up plugins via * `/node_modules/`, so the returned `pluginPath` is the * directory whose `node_modules/` contains the package — NOT the package dir * itself. `packageDir` is the actual package root (where package.json/types/ * live), used for metadata reads and the typesPath. * * The bundle ships at `dist/script-types/node_modules/@salesforce/b2c-script-types/` * for both production (npm-installed CLI) and source-tree dev runs after * `pnpm --filter @salesforce/b2c-cli run build`. Running `./cli` against * uncompiled source without a prior build will not find the bundle. */ private resolvePaths; } export {};