import { PinDialog } from '@ionic-native/pin-dialog' ; export class PinDialogMock extends PinDialog { param { string } message param { string } title param { string [ ] } buttons returns { Promise < { buttonIndex : number , input1 : string } > } prompt ( message , title , buttons ) { let response = { buttonIndex : 0 , input1 : '' } ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; }