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 don't believe Liverpool's performance will exceed the current performance.
I wouldn't say that Salah and Mane leaving Liverpool will be a backward development for the club as the many young players that can fill in for their position and will possibly perform better than both Salah and Mane, I know both players have made good name for the club with their past performance but there is nothing any one can do about players transfers. Since that will give them better opportunities.