declare namespace Download { interface options { dest?: string; branch?: string; extract?: boolean; unlink?: boolean; auth?: string; } } declare function Download(repo: string, options?: Download.options): Promise; export as namespace Download; export = Download;