In a blockbuster trade that alters the course of two NFL franchises, the New York Giants have agreed to send standout wide receiver Odell Beckham Jr. to the Cleveland Browns, two people familiar with the deliberations said Tuesday night.

The Browns are to send first- and third-round picks in the upcoming NFL draft and safety Jabrill Peppers to the Giants for Beckham, one of the sport's most dynamic players.

The trade can become official Wednesday, when the NFL's new league year begins.

Beckham becomes the second star NFL wide receiver traded in recent days. The Pittsburgh Steelers agreed over the weekend to send Antonio Brown to the Oakland Raiders for third- and fifth-round draft choices.

The Giants will receive considerably more for Beckham. They get Peppers, considered by some observers to be an NFL star-in-the-making and a potential replacement for Landon Collins, the safety who is leaving the Giants via free agency by agreeing to a six-year, $84 million contract with the Washington Redskins. And they receive the draft's 17th overall selection, plus a third-round choice that the Browns had gotten from the New England Patriots in a trade sending defensive tackle Danny Shelton to New England.

Still, many in and around the sport were left wondering why the Giants would part with a player as supremely gifted as Beckham, a three-time Pro Bowl selection at age 26. Beckham made spectacular catches seem routine and has been highly productive, with 390 catches for 5,476 yards and 44 touchdowns over five NFL seasons.

"At this point I have no idea what to think," Beckham told the league-owned NFL Network Tuesday night. "I'm trying to process it right now."

Beckham told the league's TV channel that he'd had a "brief" conversation with Giants General Manager Dave Gettleman and he called leaving New York "bittersweet, but it is what it is. It's life."

Gettleman had said in recent weeks that the Giants had not signed Beckham to a new contract with the intention of trading him. A person familiar with the team's thinking said this week that the Giants were not actively shopping Beckham but were listening to any offers from other NFL teams. The Browns obviously provided an offer that the Giants felt they should take.

Beckham's off-field behavior had irked Giants officials at times over the years. Co-owner John Mara said last March at the annual league meeting that he was "tired of answering questions" about Beckham's off-field issues and that the team would listen to trade offers for Beckham. That came soon after video had surfaced on social media of Beckham alongside a woman who had a credit card and what appeared to be a white powdery substance.

"First of all, I don't know what was in that video exactly," Mara said then. "But I've said before that I'm tired of answering questions about Odell's behavior and what the latest incident is. I think he knows what we expect of him, and now it's up to him."

The Giants didn't trade Beckham then, instead signing him last August to a new five-year contract worth as much as $95 million. That deal was part of Gettleman's approach of doubling down on the Giants' present rather than beginning a rebuilding project for the future. He retained veteran quarterback Eli Manning and used the second overall selection in last year's NFL draft on a running back, Saquon Barkley, instead of getting Manning's eventual successor at quarterback.

Barkley had a successful season and was named the NFL's offensive rookie of the year. But the Giants stumbled their way to a record of 5-11 this past season and finished last in the NFC East. They have retained Manning, who turned 38 in January. But the trade of Beckham leaves room to wonder if they now are in rebuilding mode.

The Browns' rebuilding under General Manager John Dorsey, meanwhile, is on fast-forward. Things are looking up considerably after the Browns went 7-8-1 last season and remained in AFC playoff contention until late in the regular season. Baker Mayfield, the quarterback taken first overall in last year's NFL draft by Dorsey, appears to be the real deal and now he has Beckham among his group of receivers. Could the Browns actually be building a powerhouse?

"We all know it's a quarterback-driven league and you have to have certain pieces in place to move a team forward," Dorsey said at the recent NFL scouting combine in Indianapolis. "It just so happens to be the quarterback position. You first and foremost have to get that position right regardless of if it's a trade or the draft or unrestricted free agency. You build your team around that."

Dorsey was asked at the combine about the possibility of trading for Brown and, referring to Steelers executive Kevin Colbert, said: "I'm not gonna talk about another team's players. But if Kevin, you're out there, here's my cellphone right here."

He then was asked about the possibility of trading for Beckham and, referring to Gettleman, Dorsey said: "Well, Dave, here's my cellphone over here."

It seemed at the time like just playful banter. By Tuesday night, though, that banter had developed into a deal that changed the NFL’s landscape.