import { ApiErrors, BadRequestResponse } from '../../codegen/model/models'; import { I18N_KEY } from './../i18n'; import * as i0 from "@angular/core"; type ErrorCode = I18N_KEY | ApiErrors; export declare class ApiErrorsService { private token; private _localError; constructor(); clear(): void; get hasError(): boolean; get hasFatalError(): boolean; setLocalError(err?: BadRequestResponse | { code: I18N_KEY; }): void; get hasLocalError(): boolean; getLocalError(): ErrorCode; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export {};