import { OnDestroy } from '@angular/core'; import { Observable, Subject } from 'rxjs'; import { Router } from '@angular/router'; import { MatDialog } from '@angular/material/dialog'; import * as i0 from "@angular/core"; export declare class AlertsService implements OnDestroy { private router; private dialog; destroy$: Subject; message: string | string[]; errorInfo: any; isAlertClosed: Subject; constructor(router: Router, dialog: MatDialog); /** * Show messages will route to the relevant error page based upon the error type and code * It defines the specific error messages for each error code and displays notifier basis on the code types * @param {any} error * @return {Observable} * @memberof AlertsService */ showMessage(error: any, isCloseNeeded?: boolean): Observable; /** * NgOnDestroy performs necessary cleanup tasks, such as unsubscribing from subscription when the component is being destroyed. * @return -returns nothing */ ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }