import type { ArgParser } from "./argparser"; import type { Default, OnMissing } from "./default"; import type { OutputOf } from "./from"; import type { Descriptive, EnvDoc, LongDoc, ProvidesHelp, ShortDoc } from "./helpdoc"; import type { HasType, Type } from "./type"; import type { AllOrNothing } from "./utils"; type StringType = Type; /** * Decodes an argument which is in the form of a key and a value, and allows parsing the following ways: * * - `--long=value` where `long` is the provided `long` * - `--long value` where `long` is the provided `long` * - `-s=value` where `s` is the provided `short` * - `-s value` where `s` is the provided `short` * @param config flag configurations */ export declare function option>(config: LongDoc & HasType & Partial>> & AllOrNothing>>): ArgParser> & ProvidesHelp & Partial; export declare function option(config: LongDoc & Partial & Descriptive & EnvDoc & ShortDoc & OnMissing>> & AllOrNothing>>): ArgParser> & ProvidesHelp & Partial; export {};