import type * as Automation from './Automation.js'; import type * as Capabilities from './Capabilities.js'; import type * as Options from './Options.js'; import type * as Services from './Services.js'; import type * as Reporters from './Reporters.js'; import type * as Frameworks from './Frameworks.js'; import type * as Workers from './Workers.js'; import type * as Network from './Network.js'; import type * as CustomCommands from './CustomCommands.js'; /** * exported constant values and browser-channel helpers */ export { MESSAGE_TYPES, BROWSER_TO_RUNNER_TYPES, RUNNER_TO_BROWSER_TYPES, BROWSER_REQUEST_TYPES, browserChannelMessage, isBrowserChannelMessage, isWorkerProcessEvent, parseBrowserToRunnerMessage, parseRunnerToBrowserMessage, routeBrowserToRunnerMessage, workerProcessEvent, } from './BrowserChannel.js'; export type { BrowserChannelMessage, AnyBrowserChannelMessage, AnyBrowserToRunnerMessage, AnyRunnerToBrowserMessage, BrowserChannelType, BrowserToRunnerType, RunnerToBrowserType, BrowserRequestType, BrowserChannelRoute, ChannelError, WorkerProcessEvent, CoverageMapPayload, BrowserTestEvent, SocketMessageValue, SocketMessagePayload, } from './BrowserChannel.js'; export type { Automation, Capabilities, Options, Services, Frameworks, Reporters, Workers, CustomCommands }; export type JsonPrimitive = string | number | boolean | null; export type JsonObject = { [x: string]: JsonPrimitive | JsonObject | JsonArray; }; export type JsonArray = Array; export type JsonCompatible = JsonObject | JsonArray; export type FunctionPropertyNames = { [K in keyof T]: T[K] extends Function ? K : never; }[keyof T]; export type FunctionProperties = Pick>; export type ThenArg = T extends PromiseLike ? U : T; interface DriverOptions { /** * directory where browser and driver should be stored */ cacheDir?: string; /** * path to custom driver binary */ binary?: string; /** * path to the log file */ logPath?: string; } declare global { namespace WebdriverIO { /** * Service option to be extended by ecosystem services */ interface ServiceOption extends Services.ServiceOption { } /** * Reporter option to be extended by ecosystem reporters */ interface ReporterOption extends Reporters.Options { } /** * types to be extended by `webdriverio` package */ interface Browser { requestedCapabilities?: any; } interface MultiRemoteBrowser { } interface Element { /** * parent of the element if fetched via `$(parent).$(child)` */ parent: WebdriverIO.Element | WebdriverIO.Browser | WebdriverIO.BrowsingContext; } /** * A tab, a window, or a frame you hold. BiDi commands on this object * target `contextId` and do not move the session's current context. */ interface BrowsingContext { contextId: string; browser: WebdriverIO.Browser; isFrame: boolean; url: string; parent?: WebdriverIO.BrowsingContext; request?: WebdriverIO.Request; } interface MultiRemoteElement { } interface ElementArray { } /** * A network request during a WebDriver Bidi session */ interface Request extends Network.Request { } /** * types to be extended by ecosystem framework adapters */ interface MochaOpts { [key: string]: any; } interface JasmineOpts { [key: string]: any; } interface CucumberOpts { [key: string]: any; } interface Config extends Options.Testrunner, Capabilities.WithRequestedTestrunnerCapabilities { } interface RemoteConfig extends Options.WebdriverIO, Capabilities.WithRequestedCapabilities { } interface MultiRemoteConfig extends Options.Testrunner, Capabilities.WithRequestedMultiRemoteCapabilities { } interface HookFunctionExtension { } interface WDIOVSCodeServiceOptions { } interface BrowserRunnerOptions { } interface ChromedriverOptions extends DriverOptions { } interface GeckodriverOptions extends DriverOptions { /** * Version of Geckodriver to download. Firefox browser versions use a * different versioning scheme than Geckodriver, so the `browserVersion` * capability cannot be used to select the driver. Defaults to the * latest available Geckodriver version. * @see https://github.com/mozilla/geckodriver/releases */ geckoDriverVersion?: string; } interface EdgedriverOptions extends DriverOptions { } interface SafaridriverOptions { } } } //# sourceMappingURL=index.d.ts.map