/** CLI 子命令清单(export 供 test/cli/router.test.ts 单一真相源引用,防硬编码漂移) */ export declare const SUBCOMMANDS: readonly ["setup", "configure", "skills", "doctor", "init", "dashboard", "qa", "install", "uninstall", "gif", "web", "daemon"]; 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; /** * 未知 --flag 检测:返回首个不认识的 flag;全为已知 MCP flag 时返回 undefined。 * L-1(2026-10-22 审查第二轮):未知 flag(如 --bogus)此前落入 stdio MCP server * 挂起等 stdin(终端像死机、CI 静默挂起)。分流处(index.ts)先调本函数报错退出。 * 已知 MCP flag 全集 = --minimal / --lite / --profile= / --overrides= * (消费点 src/index.ts startMcpServer);--help/-h/--version/-v 由更早分支处理, * 此处排除仅为纯函数自含性。 */ export declare function findUnknownFlag(args: string[]): string | undefined; export declare function showHelp(): void; export declare function showVersion(): Promise;