/** * 平台工具类 * 处理跨平台兼容性问题 */ export declare class PlatformUtils { /** * 获取当前平台类型 */ static getPlatform(): 'windows' | 'macos' | 'linux' | 'unknown'; /** * 获取平台相关的配置编辑命令 */ static getConfigEditCommand(configPath: string): string; /** * 查找Claude命令的路径 */ static findClaudeCommand(): Promise; /** * 获取常见的Claude安装路径 */ private static getCommonClaudePaths; /** * 获取用户的默认 Shell 路径 * 用于在无法直接找到可执行文件时,回退到交互式登录 shell 启动命令 */ static getUserShell(): string; /** * 检查终端是否支持颜色 */ static supportsColor(): boolean; /** * 获取终端宽度 */ static getTerminalWidth(): number; /** * 检查是否在TTY环境中 */ static isTTY(): boolean; /** * 格式化配置目录路径显示 */ static formatConfigDirForDisplay(configDir: string): string; /** * 获取系统信息 */ static getSystemInfo(): { platform: string; arch: string; nodeVersion: string; osRelease?: string; }; /** * 安全地启动外部命令 */ static spawnCommand(command: string, args?: string[], options?: { cwd?: string; timeout?: number; }): Promise<{ success: boolean; output?: string; error?: string; }>; } //# sourceMappingURL=platform-utils.d.ts.map