Effect of engine replacement on value

My 2016 Hyundai Sonata LE Hybrid (117,000 miles, average condition) had an engine failure under the recall. How will the replacement engine affect the car’s trade-in value (blue book around 4900 now)? Better value, no effect, lower?