/** * Decorator to log any errors that occur during the method execution. Optionally re-throws the error based on a parameter. * @param rethrow - A boolean to determine whether to rethrow the error after logging. Defaults to true. * @param errorHandler - An optional custom error handler function that takes the error and method name as parameters. * @returns MethodDecorator */ export declare function LogMethodError(rethrow?: boolean, errorHandler?: (error: Error, methodName: string) => void): (originalMethod: any, context: any) => (this: any, ...args: any[]) => any;