import type { Command } from 'commander'; interface CommandUsage { command: string; requiredArguments: string[]; requiredOptions: Array<{ flags: string; description: string; choices?: string[]; }>; missingOptions: string[]; helpCommand: string; } /** 保留 Commander 的校验和错误,只在失败时生成可直接用于修正调用的参数说明。 */ export declare function configureCommandUsageErrors(command: Command): void; export declare function commandUsageForError(error: unknown): CommandUsage | undefined; export {}; //# sourceMappingURL=command-usage.d.ts.map