import { WebDriver } from 'selenium-webdriver'; export declare const TEST_OBJ_NAME = "__ojwebdrivertest_proxy"; /** * Run a remote script on the browser utilizing the requested modules. If JET runtime modules are * needed, test adapters should only use this script to access them. Never do direct imports/requires * in remote scripts. * * Only modules made available by ojs/ojwebdrivertest-proxy may be used. * * @param {WebDriver} driver * @param {string[]} moduleNames An array of strings of the modules to be made available * @param {any[]} scriptArgs An array of arguments to pass to the script. Pass blank array if no args * @param {() => T} remoteFunction The remote function to be executed. The function should take the * arguments containg: each requested module as separate parameters, and each script argument as * separate parameters after the modules. * @return {Promise} Anything returned from the remote function * @template T */ export declare function executeWithModules(driver: WebDriver, moduleNames: string[], scriptArgs: any[] | undefined, remoteFunction: (...args: any[]) => T): Promise; /** * Test if the current page has oj-module-proxy loaded * @param driver The WebDriver instance * @returns A Promise resolving to true if the page has oj-module-proxy, false otherwse */ export declare function hasProxy(driver: WebDriver): Promise;