/** CLI 子命令清单(export 供 test/cli/router.test.ts 单一真相源引用,防硬编码漂移) */ export declare const SUBCOMMANDS: readonly ["setup", "configure", "skills", "doctor", "init", "dashboard", "qa", "install", "gif", "web"]; export type Subcommand = typeof SUBCOMMANDS[number]; export declare function parseSubcommand(args: string[]): { subcommand: Subcommand; rest: string[]; } | null; export declare function routeCommand(args: string[]): Promise; export declare function isCliInvocation(args: string[]): boolean; /** * 未知子命令检测:首参非 flag 且不在子命令表内。 * 2026-08-21 架构审查 MAJOR-1:此前这种输入静默落入 stdio MCP server(终端表现为 * 挂起等 stdin,零提示);router 的 Unknown command 分支对此不可达。分流处 * (index.ts)先调本函数,报错退出而非启动 server。 */ export declare function isUnknownCommand(args: string[]): boolean; export declare function showHelp(): void; export declare function showVersion(): Promise;