import { Command, Option, OptionValueSource, OptionValues } from "@commander-js/extra-typings"; declare const getOptionIfMatchingSource: (...sources: OptionValueSource[]) => (command: Command, option: K) => Opts[K] | undefined; export type OptionGetter = ReturnType; /** * Get an option value if it is explicitly supplied to the CLI command. * The difference between this and using the option directly is that we return undefined * instead of the default value if the option was not explicitly set. */ export declare const getSuppliedCliOption: (command: Command, option: K) => Opts[K] | undefined; /** * Get the default value specified for a CLI command option. * Mostly useful for getting values which may later be overridden. */ export declare const getDefaultCliOption: (command: Command, option: K) => Opts[K] | undefined; /** * Try to get the explicitly supplied CLI option, and fall back to the default value * for the option as defined in the {@link Command} */ export declare const getCliOption: (command: Command, option: K) => Opts[K] | undefined; export declare const configOption: () => Option<"-c, --config ", undefined, undefined, undefined, false, undefined>; export declare const dryOption: (description?: string) => Option<"--dry [boolean]", undefined, false, boolean, false, undefined>; export declare const verboseOption: () => Option<"--verbose", undefined, false, undefined, false, undefined>; export declare function parseBoolean(value: string | boolean): boolean; export {};