import { Gyroscope } from '@ionic-native/gyroscope' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; hidden export interface GyroscopeOrientation { /**
     *  Represent x-axis
     */ x : number ; /**
     *  Represent y-axis
     */ y : number ; /**
     *  Represent z-axis
     */ z : number ; /**
     *  Represent timestamp of sensor read. Default is 10000ms
     */ timestamp : number ; } hidden export interface GyroscopeOptions { /**
     *  Represent how often (in milliseconds) sensor should be read.  Default is 10000 ms
     */ frequency : number ; } export class GyroscopeMock extends Gyroscope { param { GyroscopeOptions } options return { Observable < GyroscopeOrientation > } watch ( options ? ) { let response ; return Observable . create ( ( observer ) => { observer . next ( response ) ; observer . complete ( ) ; } ) ; } ; param { GyroscopeOptions } options return { Promise < GyroscopeOrientation > } getCurrent ( options ? ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; }