import { NgIterable, OnInit } from '@angular/core'; import { MatDialogRef } from '@angular/material/dialog'; import { AlertType } from '@ieeesa-npm/models'; import { AlertData } from '../../models/alert-data.model'; import { DomSanitizer } from '@angular/platform-browser'; import * as i0 from "@angular/core"; /** * AlertComponent is used to show alert message for client side or server side success, error and warnings messages and this component should be invoked by using Angular material MatDialog open method. * @usageNotes -Pass AlertComponent data options as parameters to MatDialog open method as given below this.dialog.open(AlertComponent, {data: {}}) * @class AlertComponent */ export declare class AlertComponent implements OnInit { alertData: AlertData; private dialogRef; private sanitizer; message: string | NgIterable | Array; alertType: AlertType; alertTypes: typeof AlertType; isCloseNeeded: boolean; isHtmlContent: boolean; closeAriaLabel: string; constructor(alertData: AlertData, dialogRef: MatDialogRef, sanitizer: DomSanitizer); /** * Initializes the component. * @return -returns nothing */ ngOnInit(): void; /** * Takes the index as argument and needs to return the unique identifier. * @param {number} index -The index of the item in the ngFor loop. * @return {number} -The index itself. * @memberof AlertComponent */ trackByFn(index: number): number; /** * Sanitizes HTML content for safe rendering. * @param {string} value - The HTML string to sanitize. * @return {string} - The sanitized HTML string. * @memberof AlertComponent */ sanitizeHtml(value: string): string; /** * Checks if a value is an array. * @param {(string | NgIterable | Array)} value -The value to be verified whether its an array or not. * @return {boolean} -returns true if the value is an array, else false. * @memberof AlertComponent */ isArray(value: string | NgIterable | Array): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }