/*!
* Copyright Adaptavist 2022 (c) All rights reserved
*/
import { AnythingButUndefined, BaseErrorStrategyHandlers, BaseErrorStrategyOption, CustomErrorHandler, ErrorStrategyBuilderConstructor } from '@managed-api/commons-core';
import { ErrorStrategyBuilder } from './builders/errorStrategy';
import { CustomError } from './common';
export interface CommonError {
    errors?: Message[];
}
export interface Message {
    context?: string | null;
    message?: string;
    exceptionName?: string | null;
}
export declare type AdditionalErrorTypes = CustomError;
export interface ErrorStrategyHandlers extends BaseErrorStrategyHandlers<CommonError, AdditionalErrorTypes> {
    handleCustomError?(error: CustomError, attempt: number): AnythingButUndefined;
}
export interface ErrorStrategyOption extends BaseErrorStrategyOption<CommonError, AdditionalErrorTypes, ErrorStrategyHandlers, ErrorStrategyBuilder> {
}
export declare const customErrorHandlers: CustomErrorHandler[];
export declare const errorStrategyBuilderConstructor: ErrorStrategyBuilderConstructor<CommonError, AdditionalErrorTypes, ErrorStrategyHandlers, ErrorStrategyBuilder>;
//# sourceMappingURL=errorStrategy.d.ts.map