import { Hotspot } from '@ionic-native/hotspot' ; export interface HotspotConnectionInfo { /**
     *      The service set identifier (SSID) of the current 802.11 network.
     */ SSID : string ; /**
     *      The basic service set identifier (BSSID) of the current access point.
     */ BSSID : string ; /**
     *      The current link speed in Mbps
     */ linkSpeed : string ; /**
     *      The IP Address
     */ IPAddress : string ; /**
     *      Each configured network has a unique small integer ID, used to identify the network when performing operations on the supplicant.
     */ networkID : string ; } export interface HotspotNetwork { /**
     *      Human readable network name
     */ SSID : string ; /**
     *      MAC Address of the access point
     */ BSSID : string ; /**
     *      The primary 20 MHz frequency (in MHz) of the channel over which the client is communicating with the access point.
     */ frequency : number ; /**
     *      The detected signal level in dBm, also known as the RSSI.
     */ level : number ; /**
     *      Timestamp in microseconds (since boot) when this result was last seen.
     */ timestamp : number ; /**
     *      Describes the authentication, key management, and encryption schemes supported by the access point.
     */ capabilities : string ; } export interface HotspotNetworkConfig { /**
     *   Device IP Address
     */ deviceIPAddress : string ; /**
     *   Device MAC Address
     */ deviceMacAddress : string ; /**
     *   Gateway IP Address
     */ gatewayIPAddress : string ; /**
     *   Gateway MAC Address
     */ gatewayMacAddress : string ; } export interface HotspotDevice { /**
     *      Hotspot IP Address
     */ ip : string ; /**
     *      Hotspot MAC Address
     */ mac : string ; } export class HotspotMock extends Hotspot { returns { Promise < boolean > } isAvailable ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; returns { Promise < boolean > } toggleWifi ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; param { string } SSID param { string } mode param { string } password returns { Promise < any > } createHotspot ( ssid , mode , password ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < boolean > } startHotspot ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; param { string } SSID param { string } mode param { string } password returns { Promise < any > } configureHotspot ( ssid , mode , password ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < boolean > } stopHotspot ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; returns { Promise < any > } isHotspotEnabled ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < Array < HotspotDevice > > } getAllHotspotDevices ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { string } ssid param { string } password returns { Promise < any > } connectToWifi ( ssid , password ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { string } ssid param { string } password param { string } authentication param { string [ ] } encryption returns { Promise < any > } connectToWifiAuthEncrypt ( ssid , password , authentication , encryption ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { string } ssid param { string } mode param { string } password returns { Promise < any > } addWifiNetwork ( ssid , mode , password ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { string } ssid returns { Promise < any > } removeWifiNetwork ( ssid ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < boolean > } isConnectedToInternet ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; returns { Promise < boolean > } isConnectedToInternetViaWifi ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; returns { Promise < boolean > } isWifiOn ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; returns { Promise < boolean > } isWifiSupported ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; returns { Promise < boolean > } isWifiDirectSupported ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; returns { Promise < Array < HotspotNetwork > > } scanWifi ( ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; returns { Promise < Array < HotspotNetwork > > } scanWifiByLevel ( ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; returns { Promise < any > } startWifiPeriodicallyScan ( interval , duration ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } stopWifiPeriodicallyScan ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < HotspotNetworkConfig > } getNetConfig ( ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; returns { Promise < HotspotConnectionInfo > } getConnectionInfo ( ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; returns { Promise < string > } pingHost ( ip ) { return new Promise ( ( resolve , reject ) => { resolve ( '' ) ; } ) ; } ; param { string } ip returns { Promise < string > } getMacAddressOfHost ( ip ) { return new Promise ( ( resolve , reject ) => { resolve ( '' ) ; } ) ; } ; param { string } ip returns { Promise < boolean > } isDnsLive ( ip ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; param { string } ip returns { Promise < boolean > } isPortLive ( ip ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; returns { Promise < boolean > } isRooted ( ) { return new Promise ( ( resolve , reject ) => { resolve ( true ) ; } ) ; } ; }