1234567891011121314151617181920212223242526272829303132333435363738 |
- /// <reference types="webdriver" />
- /// <reference types="webdriverio/webdriverio-core" />
- import type { DefaultOptions, Capabilities } from './types';
- declare const REGION_MAPPING: {
- us: string;
- eu: string;
- 'eu-central-1': string;
- 'us-east-1': string;
- };
- export declare const validObjectOrArray: (object: any) => object is object | any[];
- export declare function getSauceEndpoint(region: keyof typeof REGION_MAPPING, { isRDC, isVisual }?: {
- isRDC?: boolean;
- isVisual?: boolean;
- }): string;
- export declare function removeLineNumbers(filePath: string): string;
- export declare function isCucumberFeatureWithLineNumber(spec: string | string[]): boolean;
- export declare function isCloudCapability(capabilities: WebDriver.DesiredCapabilities | WebdriverIO.MultiRemoteBrowserOptions): boolean;
- interface BackendConfigurations {
- port?: number;
- hostname?: string;
- user?: string;
- key?: string;
- protocol?: string;
- region?: string;
- headless?: boolean;
- path?: string;
- capabilities?: Capabilities | WebDriver.DesiredCapabilities | WebDriver.W3CCapabilities;
- }
- export declare function detectBackend(options?: BackendConfigurations): {
- hostname: string | undefined;
- port: number | undefined;
- protocol: string | undefined;
- path: string | undefined;
- };
- export declare function validateConfig<T>(defaults: DefaultOptions<T>, options: T, keysToKeep?: (keyof T)[]): T;
- export declare function loadTypeScriptCompiler(): void;
- export {};
- //# sourceMappingURL=utils.d.ts.map
|