Hmmm. Erdogan has already cut many liberties, so I couldn’t see it getting worse in that regard. I m not familar with Egypt, but in Turkey there is a relatively strong tradition with secularism, dating back to Ataturk, who is from Thessaloniki and modernised Turkey, inspired by the short progress from newly independent states from Ottoman yoke Bulgaria and Greece. He practically established what we see today as Turkey, denouncing the Ottoman Empire, including pointing out the backwardness of Islam. Since then the military have been the protector of secularism in Turkey as the majority of the military personnel have graduated in the West. It’s no coincidence that the putsch against Erdogan some years ago was organised by the military.
The problem until Erdogan was the cultural clash between the pro western Western Turkey with Istanbul and the conservative Anatolia. Erdogan pretty much undid the work of Aataturk promoting Islam, overemphasising the religious upbringing and satanising the west. It’s really hard to predict who and what will lead Turkey post Erdogan. However if there is a Muslim majority state that could be liberal and pro western, it’s Turkey. I think in the worst case scenario if it reverts to being a parliamentary republic and not presidential it could be quite liberal and for sure much more than at the time of Erdogan. I don’t think the religious fanatics are that many or much influential and that many liberal people there, especially in Istanbul, would accept Turkey being ruled as Islamic state. Having said that, Turkey must focus on educating Anatolia if it wants to fully embrace western ideas.