import type { StringRecord } from '@appium/types';
import type { AndroidDriver } from '../driver';
type ExecuteMethodArgs = readonly any[] | readonly [StringRecord] | Readonly<StringRecord>;
/**
 * Executes a script on the device or in a web context.
 *
 * @param script The script to execute. If it starts with 'mobile:', it will be treated
 * as a mobile command. Otherwise, it will be executed in the web context (if available).
 * @param args Optional arguments to pass to the script.
 * @returns Promise that resolves to the script execution result.
 * @throws {errors.NotImplementedError} If not in a web context and script doesn't start with 'mobile:'.
 */
export declare function execute(this: AndroidDriver, script: string, args?: ExecuteMethodArgs): Promise<any>;
export {};
//# sourceMappingURL=execute.d.ts.map