File: /home/thehunarfound/public_html/DMSold/node_modules/alertify.js/alertify-js.d.ts
// Type definitions for Alertify.js v1.0.11
// Project: https://github.com/alertifyjs/alertify.js
// Definitions by: Vlad Jerca <https://github.com/vladjerca>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface IAlertify {
reset(): IAlertify;
alert(message: string, onOkay?: Function, onCancel?: Function): IAlertify;
confirm(message: string, onOkay?: Function, onCancel?: Function): IAlertify;
prompt(message: string, onOkay?: Function, onCancel?: Function): IAlertify;
log(message: string, click?: Function): IAlertify;
theme(themeName: string): IAlertify;
success(message: string, click?: Function): IAlertify;
error(message: string, click?: Function): IAlertify;
cancelBtn(label: string): IAlertify;
okBtn(label: string): IAlertify;
delay(time: Number): IAlertify;
placeholder(str: string): IAlertify;
defaultValue(str: string): IAlertify;
maxLogItems(max: Number): IAlertify;
closeLogOnClick(bool: Boolean): IAlertify;
logPosition(position: string): IAlertify;
setLogTemplate(template: string): IAlertify;
clearLogs(): IAlertify;
parent(prt: HTMLElement): IAlertify;
}
declare var alertify: IAlertify;
declare module "alertify" {
export default alertify;
}