Sudan’s ruling military council and pro-democracy movement signed a political document on Wednesday that formalized the broad outlines of a power-sharing deal announced this month. But key details of the deal, including the powers of a transitional ruling council and cabinet, have yet to be agreed on.

The two sides, which have been wrestling for control of Sudan since the ouster of President Omar Hassan al-Bashir in April, signed the document early Wednesday at a hotel in the capital, Khartoum, after a night of talks led by African Union mediators.

Lt. Gen. Mohamed Hamdan, known as Hemeti, signed the deal for the military in a visible sign of the shifting balance of power in Sudan. Troops under General Hamdan’s command led a violent dispersal of pro-democracy demonstrators on June 3 that tilted the negotiations in favor of the military. Since then, General Hamdan has emerged as one of the most powerful figures in the country.

Potential immunity from prosecution for General Hamdan and other military leaders accused of using violence to suppress protests is one of several core issues that still divide military and civilian negotiators. Within hours of the political agreement being signed on Wednesday, protest leaders warned that a return to civilian rule is by no means assured in Sudan.