// Type definitions for ngCordova dialogs plugin // Project: https://github.com/driftyco/ng-cordova // Definitions by: Michel Vidailhet , Kapil Sachdeva // Definitions: https://github.com/ksachdeva/DefinitelyTyped /// declare namespace ngCordova { export interface IDialogsPromptResult { input1: string; buttonIndex: number; } export interface IDialogsService { alert(message: string, title?: string, buttonName?: string): ng.IPromise; confirm(message: string, title?: string, buttonArray?: Array): ng.IPromise; prompt(message: string, title?: string, buttonArray?: Array, defaultText?: string): ng.IPromise; beep(repetitions: number): void; } }