UNPKG

585 BTypeScriptView Raw
1import * as args from './args';
2import * as flags from './flags';
3import { OutputArgs, OutputFlags, ParserOutput as Output } from './parse';
4export { args };
5export { flags };
6export { flagUsages } from './help';
7export declare type Input<TFlags extends flags.Output> = {
8 flags?: flags.Input<TFlags>;
9 args?: args.Input;
10 strict?: boolean;
11 context?: any;
12 '--'?: boolean;
13};
14export declare function parse<TFlags, TArgs extends {
15 [name: string]: string;
16}>(argv: string[], options: Input<TFlags>): Output<TFlags, TArgs>;
17export { OutputFlags, OutputArgs, Output };