import { Command } from 'commander'; interface InstallOptions { save?: boolean; saveDev?: boolean; global?: boolean; enable?: boolean; dryRun?: boolean; } interface EnablePluginResult { status: 'enabled' | 'already-enabled' | 'missing-config' | 'unsupported-config'; configFile?: string; pluginName?: string; message: string; patch?: string; } export declare const installCommand: Command; export declare const addCommand: Command; /** * 检测插件类型 */ export declare function detectPluginType(plugin: string): 'npm' | 'git' | 'github' | 'gitlab' | 'bitbucket'; /** * 构建安装命令参数数组(不包含 pnpm 本身) */ export declare function buildInstallArgs(plugin: string, type: string, options: InstallOptions): string[]; /** * 提取插件名称 */ export declare function extractPluginName(plugin: string, type: string): string | null; export declare function resolvePluginNameForEnable(plugin: string, type: string, cwd: string): string | null; export declare function stripNpmVersion(spec: string): string; export declare function previewEnablePlugin(cwd: string, pluginName: string): EnablePluginResult; export declare function enablePluginInProjectConfig(cwd: string, pluginName: string): Promise; export {}; //# sourceMappingURL=install.d.ts.map