/** * Translate `node:util` parseArgs errors into this CLI's own phrasing. * Each subcommand's `run()` catches parse failures and prints * `err.message` verbatim, so the messages produced here are the * user-facing contract (`Unknown argument: --bogus` etc. — see * validate-cli.test.ts / cli-emit.test.ts). * * Returns the error to throw so call sites read * `throw translateParseArgsError(err, {...})`. * * `missingValueMessages` maps a long flag (`"--output"`) to the * message thrown when its value is missing; flags not in the map get * a generic ` requires a value`. */ export declare function translateParseArgsError(err: unknown, missingValueMessages?: Readonly>): unknown; //# sourceMappingURL=parseArgsError.d.ts.map