import { BaseDriver } from 'appium/driver'; import { executeElementCommand, executeGetVMCommand, executeGetIsolateCommand } from './sessions/observatory'; import { desiredCapConstraints } from './desired-caps'; import { XCUITestDriver } from 'appium-xcuitest-driver'; import { AndroidUiautomator2Driver } from 'appium-uiautomator2-driver'; import type { DefaultCreateSessionResult, DriverCaps, RouteMatcher } from '@appium/types'; import type { IsolateSocket } from './sessions/isolate_socket'; import type { Server } from 'node:net'; import type { LogMonitor } from './sessions/log-monitor'; type FluttertDriverConstraints = typeof desiredCapConstraints; declare class FlutterDriver extends BaseDriver { socket: IsolateSocket | null; locatorStrategies: string[]; proxydriver: XCUITestDriver | AndroidUiautomator2Driver | null; device: any; portForwardLocalPort: string | null; localServer: Server | null; protected _logmon: LogMonitor | null; internalCaps: DriverCaps; receiveAsyncResponse: (...args: any[]) => Promise; proxyWebViewActive: boolean; executeElementCommand: typeof executeElementCommand; executeGetVMCommand: typeof executeGetVMCommand; executeGetIsolateCommand: typeof executeGetIsolateCommand; execute: (this: FlutterDriver, rawCommand: string, args: any[]) => Promise; executeAsync: (this: FlutterDriver, rawCommand: string, args: any[]) => Promise; getText: (this: FlutterDriver, el: string) => Promise; setValue: (this: FlutterDriver, textInput: string | [string], el: string) => Promise; clear: (this: FlutterDriver, el: string) => Promise; getScreenshot: (this: FlutterDriver) => Promise; click: (this: FlutterDriver, el: string) => Promise; longTap: (this: FlutterDriver, gestures: Record[], ms: number) => Promise; tapEl: (this: FlutterDriver, el: string, longPress: boolean) => Promise; tap: (this: FlutterDriver, gestures: Record[], longPress: boolean) => Promise; performTouch: (this: FlutterDriver, gestures: Record[]) => Promise; getContexts: (this: FlutterDriver) => Promise; getCurrentContext: (this: FlutterDriver) => Promise; setContext: (this: FlutterDriver, context: string) => Promise; protected currentContext: string; private driverShouldDoProxyCmd; getClipboard: (this: FlutterDriver, contentType: string) => Promise; setClipboard: (this: FlutterDriver, content: string, contentType: string) => Promise; constructor(opts: any, shouldValidateCaps: boolean); createSession(...args: any[]): Promise>; deleteSession(): Promise; installApp(appPath: string, opts?: {}): Promise; activateApp(appId: string): Promise; terminateApp(appId: string): Promise; back(): Promise; getOrientation(): Promise; setOrientation(orientation: string): Promise; validateLocatorStrategy(strategy: string): void; validateDesiredCaps(caps: DriverCaps): caps is DriverCaps; proxyCommand(url: string, method: string, body?: null): Promise; executeCommand(cmd: string, ...args: [string, [{ skipAttachObservatoryUrl: string; any: any; }]]): Promise; getProxyAvoidList(): RouteMatcher[]; proxyActive(): boolean; canProxy(): boolean; } export { FlutterDriver }; //# sourceMappingURL=driver.d.ts.map