import { Session as BasicSession, Command } from 'selenium-mock'; export interface Location { latitude: number; longitude: number; altitude: number; } export interface FsFolder { [name: string]: (string | FsFolder); } export declare type Orientation = 'LANDSCAPE' | 'PORTRAIT'; export interface Session extends BasicSession { currentContext?: string; installedApps?: string[]; locked?: boolean; localStorage?: { [key: string]: string; }; location?: Location; locationEnabled?: boolean; orientation?: Orientation; files?: FsFolder; sessionStorage?: { [key: string]: string; }; settings?: { [key: string]: any; }; activity?: string; networkConnection?: number; } export interface CommandList { [name: string]: Command | CommandList; } export interface ElementCommandList extends CommandList { elementIdLocationInView: Command; } export interface StorageCommandList extends CommandList { getKeys: Command; getValue: Command; setValue: Command; deleteEntry: Command; deleteAll: Command; getSize: Command; } export interface AppiumAppCommandList extends CommandList { toBackground: Command; closeApp: Command; getStrings: Command; launch: Command; reset: Command; } export interface AppiumDeviceCommandList extends CommandList { getActivity: Command; startActivity: Command; hideKeyboard: Command; sendKeyEvent: Command; pressKeyCode: Command; longPressKeyCode: Command; installApp: Command; isAppInstalled: Command; removeApp: Command; isLocked: Command; lock: Command; unlock: Command; pullFile: Command; pullFolder: Command; pushFile: Command; getTime: Command; openNotifications: Command; rotate: Command; shake: Command; } export interface AppiumCommandList extends CommandList { getSettings: Command; setSettings: Command; setImmediateValue: Command; app: AppiumAppCommandList; device: AppiumDeviceCommandList; } export interface ChromiumCommandList extends CommandList { sendChromiumCommand: Command; sendChromiumCommandAndGetResult: Command; } export interface SessionCommandList extends CommandList { currentContext: Command; selectContext: Command; listContexts: Command; uploadFile: Command; getNetworkConnection: Command; setNetworkConnection: Command; toggleAirplaneMode: Command; toggleData: Command; toggleWiFi: Command; toggleLocationServices: Command; getGeolocation: Command; setGeolocation: Command; getOrientation: Command; setOrientation: Command; switchToParentFrame: Command; fullscreen: Command; performMultiAction: Command; performTouchAction: Command; element: ElementCommandList; sessionStorage: StorageCommandList; localStorage: StorageCommandList; appium: AppiumCommandList; chromium: ChromiumCommandList; }