/** * Returns the value following a CLI option, failing fast when the option is * present without a concrete value. * * @throws {CliUsageError} When the option is present without a value. */ export declare function getOptionValue(args: readonly string[], optionName: string): string | undefined; /** * Returns the single value provided for a non-repeatable CLI option, rejecting * duplicate occurrences instead of silently choosing one. */ export declare function getSingleOptionValue(args: readonly string[], optionName: string): string | undefined; /** * Returns every value provided for a repeatable CLI option, rejecting valueless * occurrences instead of accidentally consuming the next flag as data. */ export declare function getOptionValues(args: readonly string[], optionName: string): string[]; /** * Returns whether a CLI flag was provided, rejecting duplicate occurrences. */ export declare function hasSingleFlag(args: readonly string[], flagName: string): boolean;