The Yankees struck quickly after losing Robinson Cano to the Mariners Friday, agreeing to a three-year, $45 million deal with outfielder Carlos Beltran, according to a baseball official with knowledge of the deal.

Beltran, who will be 37 in April, figures to be the Yankees’ regular right fielder while also seeing some time at designated hitter to stay fresh.