import { BackgroundFetch } from '@ionic-native/background-fetch' ; export interface BackgroundFetchConfig { /**
     * Set true to cease background-fetch from operating after user "closes" the app. Defaults to true.
     */ stopOnTerminate ? : boolean ; } export class BackgroundFetchMock extends BackgroundFetch { param { BackgroundFetchConfig } config return { Promise < any > } configure ( config ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } start ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } stop ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; /**
     * You MUST call this method in your fetch callbackFn provided to #configure in order to signal to iOS that your fetch action is complete. iOS provides only 30s of background-time for a fetch-event -- if you exceed this 30s, iOS will kill your app.
     */ finish ( ) { } ; returns { Promise < any > } status ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }