import { Context } from '../context'; export declare const ErrorHandler: unique symbol; export declare const DEFALUT_ERROR_HANDLER_PRIORITY = 1; export declare const HTTP_ERROR_HANDLER_PRIORITY: number; export declare const VALIDATION_ERRORS_ERROR_HANDLER_PRIORITY: number; export interface ErrorHandler { /** * The priority value must be greater than the default Error Handler's priority: DEFALUT_ERROR_HANDLER_PRIORITY, otherwise it will never be executed. */ readonly priority: number; canHandle(ctx: Context, err: Error): Promise; handle(ctx: Context, err: Error): Promise; } //# sourceMappingURL=error-protocol.d.ts.map