SANTA CLARA, Calif. — Veteran quarterback Brian Hoyer will join the San Francisco 49ers and be reunited with Coach Kyle Shanahan, according to an NFL Network report Wednesday.

Hoyer was presumed to be a target of Shanahan, given that the two worked together in 2014 with the Cleveland Browns.

Hoyer was talking with the New York Jets and 49ers, according to the NFL Network’s Ian Rapoport, but will sign a two-year deal with San Francisco when the signing period begins Thursday. He will be given a chance to start, although another NFL Network report indicated the 49ers haven’t given up on trying to trade for Washington quarterback Kirk Cousins.

Meanwhile, reports also indicate the 49ers will sign two free-agent receivers, including Pierre Garcon of Washington. Rapoport also reported the 49ers will sign Bills receiver Marquise Goodwin, 26, a speedster who had 29 catches for 431 yards and three touchdowns in 2016.

The NFL’s negotiating period began Tuesday. Profootballtalk.com reported that Hoyer, 31, is expected to select a team on the first day of free agency.

In 2016, Hoyer played in six games with five starts for the Chicago, completing 134 of 200 passes (66.0 percent) for 1,445 yards, six touchdowns, no interceptions and a passer rating of 98.0 before his season ended with a broken left arm.

With Shanahan, Hoyer led the Browns to a 7-6 record as a starter, the most for the team since Derek Anderson won 10 games in 2007, the last time Cleveland made the playoffs.

Hoyer could be a bridge starter for the 49ers or also a backup, which means his acquisition wouldn’t necessarily mean there wouldn’t be interest in trading for Cousins.