import { TbxError } from '@lacera/ngx-toolbox/http'; import * as i0 from '@angular/core'; import { ErrorHandler, Injector } from '@angular/core'; /** * A service to submit application errors to the administrators. */ declare class TbxErrorService { /** Gets or sets the error last logged by this service. */ lastError: TbxError | null; /** Gets or sets the URL where the message can be submitted. */ submitErrorUrl: string; private readonly http; private readonly location; /** * Gets an alert observable to which a caller can subscribe to be notified when * a new alert is added. * @param error The error to log. * @returns An observable of to subscribe to for new alerts. */ log(error: any): TbxError; /** * Submits an error to the server for the administrators. * @param error The error to submit. */ submitError(error: TbxError): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * Global error handling appropriate to LACERA Angular applications. */ declare class TbxGlobalErrorHandler implements ErrorHandler { private readonly injector; constructor(injector: Injector); /** * Logs the error to the console and sends it to the ToolBox to store it on * the server logs, which may also notify the administrators. * @param error - The error that occurred in the application. */ handleError(error: any): void; private getErrorService; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { TbxErrorService, TbxGlobalErrorHandler };