import { Dialogs } from '@ionic-native/dialogs' ; export interface DialogsPromptCallback { /**
     * The index of the pressed button. (Number) Note that the index uses one-based indexing, so the value is 1, 2, 3, etc.
     */ buttonIndex : number ; /**
     * The text entered in the prompt dialog box. (String)
     */ input1 : string ; } export class DialogsMock extends Dialogs { param { string } message param { string } title param { string } buttonName returns { Promise < any > } alert ( message , title ? , buttonName ? ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { string } message param { string } title param { Array < string > } buttonLabels returns { Promise < number > } confirm ( message , title ? , buttonLabels ? ) { return new Promise ( ( resolve , reject ) => { resolve ( 1 ) ; } ) ; } ; param { string } message param { string } title param { Array < string > } buttonLabels param { string } defaultText returns { Promise < DialogsPromptCallback > } prompt ( message ? , title ? , buttonLabels ? , defaultText ? ) { let theResult ; return new Promise ( ( resolve , reject ) => { resolve ( theResult ) ; } ) ; } ; param { numbers } times beep ( times ) { } ; }