browser-data.d.ts 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /**
  2. * @license
  3. * Copyright 2023 Google Inc.
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. import * as chromeHeadlessShell from './chrome-headless-shell.js';
  7. import * as chrome from './chrome.js';
  8. import * as chromedriver from './chromedriver.js';
  9. import * as chromium from './chromium.js';
  10. import * as firefox from './firefox.js';
  11. import { Browser, BrowserPlatform, ChromeReleaseChannel, type ProfileOptions } from './types.js';
  12. export type { ProfileOptions };
  13. export declare const downloadUrls: {
  14. chromedriver: typeof chromedriver.resolveDownloadUrl;
  15. "chrome-headless-shell": typeof chromeHeadlessShell.resolveDownloadUrl;
  16. chrome: typeof chrome.resolveDownloadUrl;
  17. chromium: typeof chromium.resolveDownloadUrl;
  18. firefox: typeof firefox.resolveDownloadUrl;
  19. };
  20. export declare const downloadPaths: {
  21. chromedriver: typeof chromedriver.resolveDownloadPath;
  22. "chrome-headless-shell": typeof chromeHeadlessShell.resolveDownloadPath;
  23. chrome: typeof chrome.resolveDownloadPath;
  24. chromium: typeof chromium.resolveDownloadPath;
  25. firefox: typeof firefox.resolveDownloadPath;
  26. };
  27. export declare const executablePathByBrowser: {
  28. chromedriver: typeof chromedriver.relativeExecutablePath;
  29. "chrome-headless-shell": typeof chromeHeadlessShell.relativeExecutablePath;
  30. chrome: typeof chrome.relativeExecutablePath;
  31. chromium: typeof chromium.relativeExecutablePath;
  32. firefox: typeof firefox.relativeExecutablePath;
  33. };
  34. export declare const versionComparators: {
  35. chromedriver: typeof chromeHeadlessShell.compareVersions;
  36. "chrome-headless-shell": typeof chromeHeadlessShell.compareVersions;
  37. chrome: typeof chromeHeadlessShell.compareVersions;
  38. chromium: typeof chromium.compareVersions;
  39. firefox: typeof firefox.compareVersions;
  40. };
  41. export { Browser, BrowserPlatform, ChromeReleaseChannel };
  42. /**
  43. * @public
  44. */
  45. export declare function resolveBuildId(browser: Browser, platform: BrowserPlatform, tag: string): Promise<string>;
  46. /**
  47. * @public
  48. */
  49. export declare function createProfile(browser: Browser, opts: ProfileOptions): Promise<void>;
  50. /**
  51. * @public
  52. */
  53. export declare function resolveSystemExecutablePath(browser: Browser, platform: BrowserPlatform, channel: ChromeReleaseChannel): string;
  54. /**
  55. * Returns a version comparator for the given browser that can be used to sort
  56. * browser versions.
  57. *
  58. * @public
  59. */
  60. export declare function getVersionComparator(browser: Browser): (a: string, b: string) => number;
  61. //# sourceMappingURL=browser-data.d.ts.map