Rooney to retire from international football in 2018.