import { ComponentFactoryResolver, ComponentRef, Injector, RendererFactory2 } from '@angular/core'; import { HttpErrorResponse } from '@angular/common/http'; import { NavigationError } from '@angular/router'; import { HttpErrorReporterService, LocalizationParam, RouterEvents } from '@abp/ng.core'; import { Observable } from 'rxjs'; import { HttpErrorWrapperComponent } from '../components'; import { ErrorScreenErrorCodes, HttpErrorConfig, Confirmation } from '../models'; import { ConfirmationService } from '../services'; import * as i0 from "@angular/core"; export declare const DEFAULT_ERROR_MESSAGES: { defaultError: { title: string; details: string; }; defaultError401: { title: string; details: string; }; defaultError403: { title: string; details: string; }; defaultError404: { title: string; details: string; }; defaultError500: { title: string; details: string; }; }; export declare const DEFAULT_ERROR_LOCALIZATIONS: { defaultError: { title: string; details: string; }; defaultError401: { title: string; details: string; }; defaultError403: { title: string; details: string; }; defaultError404: { title: string; details: string; }; defaultError500: { title: string; details: string; }; }; export declare class ErrorHandler { protected injector: Injector; componentRef: ComponentRef | null; protected httpErrorHandler: import("../models").HttpErrorHandler; protected httpErrorReporter: HttpErrorReporterService; protected routerEvents: RouterEvents; protected confirmationService: ConfirmationService; protected cfRes: ComponentFactoryResolver; protected rendererFactory: RendererFactory2; protected httpErrorConfig: HttpErrorConfig; constructor(injector: Injector); protected listenToRouterError(): void; protected listenToRouterDataResolved(): void; protected listenToRestError(): void; private executeErrorHandler; private handleError; protected show401Page(): void; protected show404Page(): void; protected showErrorWithRequestBody(body: any): Observable; protected showError(message: LocalizationParam, title: LocalizationParam): Observable; private navigateToLogin; createErrorComponent(instance: Partial): void; canCreateCustomError(status: ErrorScreenErrorCodes): boolean; protected filterRestErrors: ({ status }: HttpErrorResponse) => boolean; protected filterRouteErrors: (navigationError: NavigationError) => boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }