If both Mane and Salah leave Liverpool next season, Liverpool will face a lot of problems. The Liverpool team is stable and strong. But their performance is largely dependent on the performance of Salah and Mane. So Liverpool should not sell these two players before finding a replacement. Although Liverpool did not win the Champions League and Premier League titles this season, their performances were very consistent. Let's see how Liverpool's management decides.
It is undeniable that Liverpool's strength has won several trophies from the enormous contribution of Salah and Mane. Maybe as you say, if Salah and also Mane 9 (seems to be rumored to Bayern Munich) have been confirmed. Then there will be many vacant positions that are difficult to fill. Liverpool's target next season must be more clear because if in the end can't find a suitable replacement I really don't believe Liverpool's performance will exceed the current performance.