China has signaled it would be open to a deal to keep TikTok in the US market.