ANKARA, Turkey — Turkey has wrapped up a crucial parliamentary election that will determine whether ruling party lawmakers can rewrite the constitution to bolster the powers of President Recep Tayyip Erdogan.

Polls closed Sunday afternoon, but preliminary results are not expected to start coming in for some hours.

Erdogan himself was not on the ballot. Still, the election was effectively a referendum on whether to endow his office with extraordinary powers that would significantly change Turkey's democracy and prolong his reign as the country's most powerful politician.

Erdogan's ruling Justice and Development Party, the AKP, is expected to win significantly more votes than any opposition party but it must win a supermajority of the 550 seats in parliament to change the constitution.

All eyes will be on the results for the main Kurdish party, HDP. If it crosses a 10 percent threshold for entering parliament as a party, that would extinguish AKP's constitutional plans.

The vote comes amid high tensions after bombings Friday during a HDP rally killed 2 people and wounded scores. On Sunday, Prime Minister Ahmet Davutoglu said a suspect had been detained in the case, but provided no other details.

More than 53 million voters in Turkey and abroad are eligible to choose the deputies to the Grand National Assembly. If the ruling AKP wins a majority of 330 seats, it could call for a national referendum to change the constitution. If the party captures 367 seats, it could vote in a change without a referendum.

After casting his vote, HDP leader Selahattin Demirtas called for peace after what he saw as an "onerous and a troubled campaign."

Aside from the constitutional issues, the election could have a major impact on the peace process to end decades of insurgency by Kurdish militants in Turkey.

Scuffles between rival party supporters were reported in at least two provinces Sunday, including one in Sanliurfa which injured 15 people.

Erdogan has been Turkey's dominant politician since his party swept into power in 2002 — becoming prime minister in 2003 and leading his party to two overwhelming parliamentary election victories. In a gamble, last year he decided to run for president, banking that his party could later bolster his powers.

Under the current constitution, Erdogan is meant to stay above the political fray as president. But he has been campaigning vociferously, drawing complaints from the opposition that he is ignoring the constitution.

As he cast his vote Sunday, Erdogan praised the election as an indication of the strength of democracy in Turkey.

"This strong democracy will be confirmed with the will of our people and extend the trust we have in our future," Erdogan said.

Early in the campaign, he called on voters to give AKP 400 deputies, but a slim majority for the ruling party is a more likely result. That could leave Erdogan stranded in the presidential palace without the powers he has long sought.

A narrow win by the AKP, however, could be the best result for Davutoglu, who would lose power if Erdogan has his way.

Opposition parties, including the main opposition Republican People's Party, or CHP, and the nationalist MHP party looked stronger in a recent poll, campaigning on positive economic agendas.

Hakan Kiziltan, an Ankara resident, expressed optimism after voting Sunday.

"May it be good for our people and our country," he said. "I believe our country will go even further after these elections."