Pakistan, June 12 -- US President Donald Trump touted ties with China as "excellent" on Wednesday, saying the superpowers reached a deal after two days of talks aimed at preserving a truce in their damaging trade war.

Trump said on his Truth Social platform that China would supply rare earth minerals and magnets - vital elements for US industries - while Washington would allow Chinese students to remain in US universities.

His post came hours after top US and Chinese negotiators announced a "framework" agreement late Tuesday following two days of marathon talks in London.

"Our deal with China is done," Trump wrote, adding that the agreement was still "subject to final approval with President Xi (Jinping) and me."

"President XI and I a...