Ed Miliband said all options, including the UK rejoining the EU, could be considered in future discussions with European leaders, after the UK agreed deals with the bloc on trade and young people.

The foreign secretary said “all options” would be examined. Prime Minister Andy Burnham agreed the deals on Friday, and is expected to hold further “brainstorming” discussions with the EU in the next year. Informal talks with Brussels are planned before next year’s UK-EU summit.

The agreements cover food and drink standards, emissions trading and a youth mobility scheme. Under the plans, 100,000 young Britons will be allowed to live, work, study and travel in the EU, with similar access for Europeans in the UK.

Burnham said the agreement would add 0.5% to the UK’s GDP, a £17bn boost to the British economy. Miliband said this week’s agreements were the limit of what could be done before the next general election.

The deals could be derailed in six months, the article said, as the EU threatened to block them unless the UK allows European students to pay domestic-level fees at British universities. European Commission president Ursula von der Leyen said she was “confident we are going to find a solution”. On the further discussions, she said: “We welcome this brainstorming, so count on us.”

In an interview for the BBC’s Sunday with Laura Kuenssberg, Miliband was asked whether rejoining the bloc would be considered. He said “all the options will be on the table” and added: “we will look at the benefits and the costs of all the different options”.

Since entering government in 2024, Labour has maintained the “red lines” in its manifesto: it would not rejoin the single market or customs union, and ruled out freedom of movement. Burnham has previously said he wants the UK to rejoin the EU in his lifetime.

Miliband said he accepts the result of the 2016 vote, but “the world has changed massively”. He said: “Europe is changing too, so we’ve got to look at what that means,” adding: “It’s not about this parliament, we’re respecting the red lines in this parliament.”

The prime minister is expected to use the announcement of his 10-year plan before Christmas to explore how the UK could get closer to the EU after the next election.

On Friday, Burnham said the agreement represented a “good day for Britain and Europe”. He said the deals addressed “the biggest challenges of our times and the biggest worries that people have”, citing the cost of living, lack of economic growth, illegal immigration and challenges facing young people. “The deal is done. It is there in black and white in front of you,” he said, adding that the legislation would enter parliament next week.

Environment secretary Angela Eagle told BBC Radio 4’s Today programme on Saturday that the deal was good for farmers. Eagle said: “(It) will open up new markets. They’ll be able to import and export. “This is a win-win for the UK. We will dissolve a lot of the friction and costs at the border for UK agriculture and food.”