UNPKG

469 BTypeScriptView Raw
1import type { ParsedOutput, FlagsParserOptions, ArgumentsParserOptions } from './types.js';
2/**
3 * Parses the command line arguments. The flags are parsed
4 * using yargs-parser
5 */
6export declare class Parser {
7 #private;
8 constructor(options: {
9 flagsParserOptions: FlagsParserOptions;
10 argumentsParserOptions: ArgumentsParserOptions[];
11 });
12 /**
13 * Parse commandline arguments
14 */
15 parse(argv: string | string[]): ParsedOutput;
16}