import { Httpd } from '@ionic-native/httpd' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export interface HttpdOptions { /**
     * The public root directory for your web server. This path is relative to your app's www directory.
     * Default is current directory.
     */ www_root ? : string ; /**
     * The port number to use.
     * Default is 8888
     */ port ? : number ; /**
     * Setting this option to false will allow remote access to your web server (over any IP).
     * Default is false.
     */ localhost_only ? : boolean ; } export class HttpdMock extends Httpd { param options { HttpdOptions } returns { Observable < string > } startServer ( options ? ) { let response ; return Observable . create ( ( observer ) => { observer . next ( response ) ; observer . complete ( ) ; } ) ; } ; returns { Promise < string > } getUrl ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < string > } getLocalPath ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }