Liverpool have signed Fabio Carvalho from Fulham with the forward set to officially join on 1 July.
The 19-year-old played a key role in the Cottagers' promotion to the Premier League, scoring 10 goals and providing eight assists.
The clubs previously agreed a fee for a move in January but on deadline day.
Carvalho played for England at youth level but made his Portugal under-21 debut in March.
He came through the Fulham academy and was nominated for EFL Young Player of the Season, losing out to Nottingham Forest's Brennan Johnson.
"Fabio is a great talent and we did everything we could trying to secure him here on a longer deal so he could play in the Premier League with Fulham," said club owner Tony Khan.
"That didn't prove possible, but we were able to keep him for the remainder of the Championship winning campaign and for that I know he will always be very fondly remembered by our fans."
- Our coverage of Liverpool is bigger and better than ever before - here's to make sure you never miss a moment