import { XCUITestDriver } from '../driver';
import type { StringRecord } from '@appium/types';
type ExecuteMethodArgs = readonly any[] | readonly [StringRecord<unknown>] | Readonly<StringRecord<unknown>>;
/**
 * @template TReturn
 * @param script - Either a script to run, or in the case of an Execute Method, the name of the script to execute.
 * @param args
 */
export declare function execute<TReturn = unknown>(this: XCUITestDriver, script: string, args?: ExecuteMethodArgs): Promise<TReturn>;
/**
 * @group Mobile Web Only
 */
export declare function executeAsync(this: XCUITestDriver, script: string, args?: readonly any[]): Promise<any>;
export {};
//# sourceMappingURL=execute.d.ts.map