CLI.d.ts 857 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * @license
  3. * Copyright 2023 Google Inc.
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /// <reference types="node" />
  7. import * as readline from 'readline';
  8. import { type Browser } from './browser-data/browser-data.js';
  9. /**
  10. * @public
  11. */
  12. export declare class CLI {
  13. #private;
  14. constructor(opts?: string | {
  15. cachePath?: string;
  16. scriptName?: string;
  17. prefixCommand?: {
  18. cmd: string;
  19. description: string;
  20. };
  21. allowCachePathOverride?: boolean;
  22. pinnedBrowsers?: Partial<{
  23. [key in Browser]: string;
  24. }>;
  25. }, rl?: readline.Interface);
  26. run(argv: string[]): Promise<void>;
  27. }
  28. /**
  29. * @public
  30. */
  31. export declare function makeProgressCallback(browser: Browser, buildId: string): (downloadedBytes: number, totalBytes: number) => void;
  32. //# sourceMappingURL=CLI.d.ts.map