// Type definitions for mri 1.1 // Project: https://github.com/lukeed/mri // Definitions by: Brendan Forster , Jed Fox // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 export = mri; declare function mri(args: ReadonlyArray, options?: mri.Options): mri.Argv; declare namespace mri { const prototype: { }; /** A string or array of strings */ type ArrayOrString = string | ReadonlyArray; /** An object with any keys whose values conform to a specific type */ interface DictionaryObject { [key: string]: T; } interface Options { /** Additional aliases for specific flags */ alias?: DictionaryObject; /** A flag or array of flags whose values are boolean */ boolean?: ArrayOrString; /** Default values for flags */ default?: DictionaryObject; string?: ArrayOrString; unknown?: (flag: string) => void; } interface Argv extends DictionaryObject { /** anything after `--` or between options */ _: ReadonlyArray; } }