import * as au from "../aurelia"; import { ProgressHandle } from "./progress-handle"; import { IDisposable } from "../interfaces/i-disposable"; import { I18NResource } from "../interfaces/i18n-resource"; import { ApplicationInsights } from "@microsoft/applicationinsights-web"; export declare class AlertService { private toast; private eventAggregator; private templatingEngine; private i18n; private appInsights; constructor(toast: au.MdToastService, eventAggregator: au.EventAggregator, templatingEngine: au.TemplatingEngine, i18n: au.I18N, appInsights: ApplicationInsights); progressCounter: number; defaultTimeout: number; logger: au.Logger; i18nResource: I18NResource["alert"]; private showModal; alert(message: string, icon?: string, iconColour?: string, allowHtml?: boolean): Promise; confirm(message: string, icon?: string, iconColour?: string, allowHtml?: boolean): Promise; error(message: string, allowHtml?: boolean): Promise; criticalError(message: string, error: any, allowHtml?: boolean): Promise; confirmToast(message: string, timeout?: number): void; errorToast(message: string, timeout?: number): void; warningToast(message: string, timeout?: number): void; showProgress(): void; hideProgress(): void; usingProgress(action: () => Promise, catchHandler?: (e: any) => Promise): Promise; progress(): ProgressHandle; } export declare function using(disposable: IDisposable, action: () => Promise, catchHandler: (e: any) => Promise): Promise;