import { HTTP } from '@ionic-native/http' ; export interface HTTPResponse { /**
     * The status number of the response
     */ status : number ; /**
     * The headers of the response
     */ headers : any ; /**
     * The URL of the response. This property will be the final URL obtained after any redirects.
     */ url : string ; /**
     * The data that is in the response. This property usually exists when a promise returned by a request method resolves.
     */ data ? : any ; /**
     * Error response from the server. This property usually exists when a promise returned by a request method rejects.
     */ error ? : string ; } export class HTTPMock extends HTTP { param username { string } param password { string } returns { Object } getBasicAuthHeader ( username , password ) { return { Authorization : '' } ; } ; param username { string } param password { string } useBasicAuth ( username , password ) { } ; param header { string } param value { string } setHeader ( header , value ) { } ; param enable { boolean } returns { Promise < any > } enableSSLPinning ( enable ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param accept { boolean } returns { Promise < any > } acceptAllCerts ( accept ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param validate { boolean } returns { Promise < any > } validateDomainName ( validate ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param url { string } param body { Object } param headers { Object } returns { Promise < HTTPResponse > } post ( url , body , headers ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param url { string } param parameters { Object } param headers { Object } returns { Promise < HTTPResponse > } get ( url , parameters , headers ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param url { string } param body { Object } param headers { Object } param filePath { string } param name { string } returns { Promise < HTTPResponse > } uploadFile ( url , body , headers , filePath , name ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param url { string } param body { Object } param headers { Object } param filePath { string } returns { Promise < HTTPResponse > } downloadFile ( url , body , headers , filePath ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; }