import { ServiceIdentifier } from "inversify"; import { ErrorInterceptor } from "../../error/ErrorInterceptor"; /** * Decorator for an endpoint method that configures the type to use to intercept errors. * * Overrides the controller error interceptor set by the `controllerErrorInterceptor` decorator, if any. * * Error interceptors instances are built using the InversifyJS IOC container for the current app. */ export declare function errorInterceptor(interceptor: ServiceIdentifier): (classDefinition: object | Function, methodName: string) => void; /** * Decorator for a controller class that configures the type to use to intercept errors. * * Error interceptors instances are built using the current app InversifyJS IOC container. */ export declare function controllerErrorInterceptor(interceptor: ServiceIdentifier): (classDefinition: Function) => void;