import { IndexAppContent } from '@ionic-native/index-app-content' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export interface IndexItem { domain : string ; identifier : string ; title : string ; description : string ; /**
     * Url to image
     */ url : string ; /**
     * Item keywords
     */ keywords ? : Array < string > ; /**
     * Lifetime in minutes
     */ lifetime ? : number ; } export class IndexAppContentMock extends IndexAppContent { return { Promise < boolean > } isIndexingAvailable ( ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param { Array < IndexItem > } Array return { Promise < any > } setItems ( items ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; returns { Observable < any > } onItemPressed ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; param { Array < string > } Array return { Promise < any > } clearItemsForDomains ( domains ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param { Array < string > } Array return { Promise < any > } clearItemsForIdentifiers ( identifiers ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param { number } Numeric setIndexingInterval ( intervalMinutes ) { } ; }