declare module 'appium-sdb' { import _ from 'lodash'; export interface SDBProps { sdkRoot?: any; udid?: any; executable: { path: string; defaultArgs: any[]; }; curDeviceId?: any; emulatorPort?: any; binaries: object; suppressKillServer?: any; sdbPort?: number; remoteSdbPort?: number; } type Device = { uuid: string; state: string; platform: string }; export class SDB { constructor(opts?: SDBProps); static createSDB(opts?: SDBProps): Promise; // SDB Commands getSdbWithCorrectSdbPath(): Promise; isDeviceConnected(): Promise; mkdir(remotePath: string): Promise; isValidClass(classString: string): RegExpExecArray; forceStop(pkg: string): Promise; getSdbPath(): string; rimraf(path: string): Promise; push(localPath: string, remotePath: string, opts: string[]): Promise; pull(remotePath: string, localPath: string): Promise; processExists(processName: string): Promise; forwardPort(systemPort: number, devicePort: number): Promise; removePortForward(systemPort: number): Promise; ping(): Promise; restart(): Promise; takeScreenShot(): Promise; // System Call Methods getConnectedDevices(): Promise; getDeviceStatus(): Promise<'device' | 'offline' | 'locked' | 'unkown'>; ConnectDevice(device: string | number): Promise; getDevicesWithRetry(timeoutMs?: number): Promise; restartSdb(): Promise; sdbExec(cmd: string, opts?: object): Promise; shell(cmd: string, opts?: object): Promise; getPortFromEmulatorString(emStr: string): Promise; getConnectedEmulators(): Promise; setDeviceId(deviceId: number | string): void; setDevice(deviceObj: object): void; getSdbVersion: (() => Promise<{ versionString: any; versionFloat: number; major: number; minor: number; patch: number; }>) & _.MemoizedFunction; reboot(): Promise; root(): Promise; unroot(): Promise; fileExists(remotePath: string): Promise; ls(remotePath: string): Promise; getSdkBinaryPath(binaryName: string): Promise; getCommandForOS(): 'which' | 'where'; setEmulatorPort(emPort: number): void; killProcess(process: string | number, opts?: object): Promise; checkProcessStatus(process: string | number, opts?: object): Promise; startExec(exec: string, opts?: object): Promise; stopAutoSleep(): Promise; startAutoSleep(): Promise; // TPK Utils isAppInstalled(pkg: any): Promise; startApp(pkg: any, opts?: object): Promise; isStartedApp(pkg: any, opts?: object): Promise; uninstall(pkg: any): Promise; installFromDevicePath(tpkPathOnDevice: string | number): Promise; install(tpk: any, pkg?: any, replace?: boolean, timeout?: number): Promise; } export const DEFAULT_SDB_PORT: number; export default SDB; }