export type HandleErrorParams = (error: unknown, context: {
    target: string;
    method: string;
}) => void;
export declare const handleAsyncError: (errorHandler: HandleErrorParams) => MethodDecorator;
export declare const handleError: (errorHandler: HandleErrorParams) => MethodDecorator;
