browser-data.d.ts 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * Copyright 2023 Google Inc. All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. import * as chrome from './chrome.js';
  17. import * as chromedriver from './chromedriver.js';
  18. import * as chromium from './chromium.js';
  19. import * as firefox from './firefox.js';
  20. import { Browser, BrowserPlatform, ChromeReleaseChannel, ProfileOptions } from './types.js';
  21. export { ProfileOptions };
  22. export declare const downloadUrls: {
  23. chromedriver: typeof chromedriver.resolveDownloadUrl;
  24. chrome: typeof chrome.resolveDownloadUrl;
  25. chromium: typeof chromium.resolveDownloadUrl;
  26. firefox: typeof firefox.resolveDownloadUrl;
  27. };
  28. export declare const downloadPaths: {
  29. chromedriver: typeof chromedriver.resolveDownloadPath;
  30. chrome: typeof chrome.resolveDownloadPath;
  31. chromium: typeof chromium.resolveDownloadPath;
  32. firefox: typeof firefox.resolveDownloadPath;
  33. };
  34. export declare const executablePathByBrowser: {
  35. chromedriver: typeof chromedriver.relativeExecutablePath;
  36. chrome: typeof chrome.relativeExecutablePath;
  37. chromium: typeof chromium.relativeExecutablePath;
  38. firefox: typeof firefox.relativeExecutablePath;
  39. };
  40. export { Browser, BrowserPlatform, ChromeReleaseChannel };
  41. /**
  42. * @public
  43. */
  44. export declare function resolveBuildId(browser: Browser, platform: BrowserPlatform, tag: string): Promise<string>;
  45. /**
  46. * @public
  47. */
  48. export declare function createProfile(browser: Browser, opts: ProfileOptions): Promise<void>;
  49. /**
  50. * @public
  51. */
  52. export declare function resolveSystemExecutablePath(browser: Browser, platform: BrowserPlatform, channel: ChromeReleaseChannel): string;
  53. //# sourceMappingURL=browser-data.d.ts.map