import { ArgParser } from './argparser'; import { OutputOf } from './from'; import { ProvidesHelp, Descriptive, LongDoc, EnvDoc, ShortDoc } from './helpdoc'; import { Type, HasType } from './type'; import { Default } from './default'; import { AllOrNothing } from './utils'; declare 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> & AllOrNothing>>): ArgParser> & ProvidesHelp & Partial; export {};