Fareed el-Deeb was speaking after judicial authorities ordered the release of Mubarak in one of the remaining corruption cases against him.
The only legal grounds for Mubarak's continued detention rest on another corruption case that will be cleared up later this week, Deeb said.
"All we have left is a simple administrative procedure that should take no more than 48 hours. He should be freed by the end of the week," Deeb said.
Mubarak, 85, still faces a retrial on charges of complicity in the murder of protesters during the 2011 revolt.
Egypt has been experiencing unrelenting violence since July 3, when the army toppled Mubarak’s successor Mohamed Morsi, the first democratically elected Egyptian head of state, and suspended the constitution and dissolved the parliament.
It also appointed the head of the Supreme Constitutional Court, Adly Mahmoud Mansour, as the new interim president.
The interim government in Egypt has been facing international condemnation over the killing of protesters. Amnesty International has called for a thorough and unbiased investigation into the August 14 massacre.
SHI/SHI