The country may not know who its next prime minister is for weeks or even months.