Sir Keir Starmer had twice declined earlier on Monday to say she would remain in the role until the next general election when asked by journalists.