Bluwise - 367 members of parliament means that the government could vote through changes to the constitution.
Without that they would need the support of another party. This is unlikely.
There wouldn't necessarily need to be a referendum.
The outcome isn't clear yet - the AKP could be the largest party without an overall majority.
There could be a coalition government or there could be another election!