type Dict = Record; type Arrayable = T | T[]; type Default = Dict; declare function mri(args?: string[], options?: mri.Options): mri.Argv; declare namespace mri { export interface Options { boolean?: Arrayable; string?: Arrayable; alias?: Dict>; default?: Dict; unknown?(flag: string): void; } export type Argv = T & { _: string[]; } } export = mri;