import { EventEmitter } from '@angular/core'; import { TerraAlertInterface } from './data/terra-alert.interface'; import * as i0 from "@angular/core"; export declare class AlertService { private isRootWindow; /** Notifies that an alert is supposed to be added. */ addAlert: EventEmitter; /** Notifies that an alert is supposed to be closed. */ closeAlert: EventEmitter; /** Name of the CustomEvent that is dispatched to the parent window to add an alert. */ readonly addEvent: string; /** Name of the CustomEvent that is dispatched to the parent window to close an alert. */ readonly closeEvent: string; private readonly defaultTimeout; constructor(isRootWindow: boolean); /** * add a success alert * @param message * @param identifier */ success(message: string, identifier?: string): void; /** * add an error alert * @param message * @param identifier */ error(message: string, identifier?: string): void; /** * add an info alert * @param message * @param identifier */ info(message: string, identifier?: string): void; /** * add a warning alert * @param message * @param identifier */ warning(message: string, identifier?: string): void; /** * Closes the first alert that matches the given identifier. * @param identifier */ close(identifier: string): void; private _add; /** * Dispatches event to the parent window indicating that an alert should be added. * @param alert */ private addAlertForPlugin; /** * Dispatches event to the parent window indicating that an alert should be closed. * @param identifier */ private closeAlertForPlugin; /** * Notifies whenever an alert should be added. * @param alert */ private notifyOnAdd; /** * Notifies whenever an alert should be closed. * @param identifier */ private notifyOnClose; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }