Ex-general Prabowo Subianto declared victory in Indonesia's tight presidential election on Wednesday, shortly after Jakarta governor Joko Widodo also claimed a win.