General election not a 'foregone conclusion,' says prime minister