Downloader.d.ts 657 B

123456789101112131415161718192021
  1. import { DownloaderBase } from './common/DownloaderBase';
  2. export interface IDownloaderOptions {
  3. platform?: string;
  4. arch?: string;
  5. version?: string;
  6. flavor?: string;
  7. mirror?: string;
  8. useCaches?: boolean;
  9. showProgress?: boolean;
  10. forceCaches?: boolean;
  11. destination?: string;
  12. }
  13. export declare class Downloader extends DownloaderBase {
  14. static DEFAULT_OPTIONS: IDownloaderOptions;
  15. options: IDownloaderOptions;
  16. constructor(options: IDownloaderOptions);
  17. fetch(): Promise<string>;
  18. protected handleVersion(version: string): Promise<any>;
  19. protected extensionByPlatform(platform: string): "tar.gz" | "zip";
  20. }