import { ThreeDeeTouch } from '@ionic-native/three-dee-touch' ; import { Observable } from 'rxjs/Observable' ; import { Observer } from 'rxjs/Observer' ; export interface ThreeDeeTouchQuickAction { /**
     * Type that can be used in the onHomeIconPressed callback
     */ type ? : string ; /**
     * Title
     */ title : string ; /**
     * Subtitle
     */ subtitle ? : string ; /**
     * Icon type. Case insensitive
     */ iconType ? : string ; /**
     * Icon template
     */ iconTemplate ? : string ; } export interface ThreeDeeTouchForceTouch { /**
     * Touch force
     */ force : number ; /**
     * Timestamp of action
     */ timestamp : number ; /**
     * X coordinate of action
     */ x : number ; /**
     * Y coordinate of action
     */ y : number ; } export class ThreeDeeTouchMock extends ThreeDeeTouch { returns { Promise < boolean > } isAvailable ( ) { let response = true ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; returns { Observable < ThreeDeeTouchForceTouch > } watchForceTouches ( ) { let response ; return Observable . create ( ( observer ) => { observer . next ( response ) ; observer . complete ( ) ; } ) ; } ; param { string } type param { string } title param { string } subtitle param { string } iconType param { string } iconTemplate configureQuickActions ( quickActions ) { } ; returns { Observable < any > } onHomeIconPressed ( ) { return Observable . create ( ( observer ) => { observer . next ( '' ) ; observer . complete ( ) ; } ) ; } ; /**
     * Enable Link Preview.
     * UIWebView and WKWebView (the webviews powering Cordova apps) don't allow the fancy new link preview feature of iOS9.
     */ enableLinkPreview ( ) { } ; /**
     * Disabled the link preview feature, if enabled.
     */ disableLinkPreview ( ) { } ; }