chrome.d.ts 1.3 KB

123456789101112131415161718192021222324252627282930
  1. /**
  2. * @license
  3. * Copyright 2023 Google Inc.
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. import { BrowserPlatform, ChromeReleaseChannel } from './types.js';
  7. export declare function resolveDownloadUrl(platform: BrowserPlatform, buildId: string, baseUrl?: string): string;
  8. export declare function resolveDownloadPath(platform: BrowserPlatform, buildId: string): string[];
  9. export declare function relativeExecutablePath(platform: BrowserPlatform, _buildId: string): string;
  10. export declare function getLastKnownGoodReleaseForChannel(channel: ChromeReleaseChannel): Promise<{
  11. version: string;
  12. revision: string;
  13. }>;
  14. export declare function getLastKnownGoodReleaseForMilestone(milestone: string): Promise<{
  15. version: string;
  16. revision: string;
  17. } | undefined>;
  18. export declare function getLastKnownGoodReleaseForBuild(
  19. /**
  20. * @example `112.0.23`,
  21. */
  22. buildPrefix: string): Promise<{
  23. version: string;
  24. revision: string;
  25. } | undefined>;
  26. export declare function resolveBuildId(channel: ChromeReleaseChannel): Promise<string>;
  27. export declare function resolveBuildId(channel: string): Promise<string | undefined>;
  28. export declare function resolveSystemExecutablePath(platform: BrowserPlatform, channel: ChromeReleaseChannel): string;
  29. export declare function compareVersions(a: string, b: string): number;
  30. //# sourceMappingURL=chrome.d.ts.map