#!/usr/bin/env node import ProgressBar from 'progress'; import { LocaleMessages } from './locale/index'; interface SkillConfig { targets: { [key: string]: { enabled: boolean; paths: { global: string; project: string; }; }; }; } interface ParsedArgs { tag: string | null; help: boolean; listVersions: boolean; } declare class SkillInstaller { private skills; private language; private rl; private skillConfig; private skillLoader; private helpManager; private args; private cacheDir; constructor(); questionAsync(question: string): Promise; printSeparator(): void; parseArgs(): ParsedArgs; /** * 处理非交互式命令 * @returns 如果处理了非交互式命令则返回true,否则返回false */ handleNonInteractiveCommands(): boolean; showHelp(): void; loadConfig(): SkillConfig; loadLocaleMessages(): LocaleMessages; getCache(key: string): any; setCache(key: string, data: any, ttlSeconds?: number): void; clearCache(key: string): void; listVersions(): Promise; loadSkills(): Promise; loadLocalSkills(): Promise; askQuestion(question: string, options: string[]): Promise; askMultipleChoice(question: string, options: string[]): Promise; createProgressBar(total: number): ProgressBar; run(): Promise; installSkills(skillNames: string[], software: string, isGlobal: boolean): Promise; copyDirectory(src: string, dest: string): void; } export { SkillInstaller };