British and French officials are scrambling to determine how they can maintain military pressure on the Islamic State terror group once the United States has pulled out its ground forces from northeast Syria.

Both countries have said they plan to continue airstrikes and ground operations in Syria, but the timing and scope of the U.S. withdrawal, say officials still reeling from President Donald Trump’s decision to withdraw U.S. forces, remains unclear and is complicating war-planning in London and Paris.

US Allies Reeling from ‘Trump Withdrawal’ Scramble in Syria

The British and French governments are trying also to gain a clearer understanding, say officials, of Turkish military intentions in northeast Syria, and when or if the Turks, as they have threatened, launch an offensive east of the Euphrates River to attack the Western-allied Kurdish Peoples’ Protection Units, or YPG.

US Allies Reeling from ‘Trump Withdrawal’ Scramble in Syria

The YPG is the main formation in the Syrian Democratic Forces, or SDF, the West’s only ground partner in the fight against IS. Turkey has been restrained from moving into Syria’s Kurdish-controlled northeast in the past by the presence of U.S. troops. Turkish President Recep Tayyip Erdogan said he would delay an offensive possibly for several months, although the Kurds say his concession shouldn’t be taken at face value.

US Allies Reeling from ‘Trump Withdrawal’ Scramble in Syria

President Erdogan has threatened to smash the Western-allied Kurdish forces in northern Syria, arguing they are indistinguishable from militant Kurdish separatists in Turkey, who have waged a three-decade-long insurgency. Kurdish leaders hope Washington will continue to press the Turks to hold off. “It’s their duty to prevent any attack and to put an end to Turkish threats,” says Aldar Khalil, a senior Kurdish official.

In the meantime, they are renewing talks with Damascus, using the northeastern oil fields, which they control, as leverage to strike a semi-autonomy deal with Syrian President Bashar al-Assad.

A critical question for London and Paris, say defense officials in both capitals, is whether the YPG will be able to keep control of the 800 IS prisoners it holds, many from European countries.

Kurdish officials warned Friday French President Emmanuel Macron's representative to Syria, François Senemand, that if Turkey does attack, it would create a chaotic situation in which they might not be able to spare the guards to make sure IS detainees are secure — let alone continue with an offensive against remaining IS formations along the border with Iraq.

The IS prisoners include two Britons accused of being members of the so-called "Beatles" murder cell, responsible for the torture and beheading of Western journalists and aid workers, including American reporters James Foley and Steve Sotloff.

The Kurds have long pleaded with European governments to repatriate foreign fighters to be prosecuted in their home countries, but to no avail, despite the Kurdish pleas being echoed by Washington and the families of journalists and aid workers murdered by IS.

Now there’s rising alarm in Western capitals that the U.S. withdrawal may trigger a chain of events that will lead to IS prisoners either escaping or being released by the Kurds, with the risk they could find their way back to the West, posing a major security headache for European governments. The Kurds say the only way to ensure their detention is for France and Britain to play a bigger military role in northern Syria. Some observers view the Kurds’ warning about IS detainees as an ultimatum.

“Under the threat of the Turkish state, and with the possibility of Daesh [Islamic State] reviving once again, I fear the situation will get out of control and we will no longer be able to contain them,” Ilham Ahmed, a Kurdish official told reporters Friday in Paris.

France has 200 special forces soldiers operating in Syria's Kurdish northeast as well as artillery units, part of an anti-IS international coalition trying to root out remaining pockets of militant fighters.

French Defense Minister Florence Parly told a French radio station she disagrees with President Trump’s assessment that IS has all but been annihilated.

“It's an extremely grave decision and we think, the job must be finished,” she said speaking three days after Trump tweeted his order for U.S. ground troops to depart Syria, declaring IS defeated. U.S. Defense Secretary James Mattis resigned in protest midweek after he and other U.S. military and national security staff failed to persuade the U.S. leader to reverse his decision.

On Saturday, it emerged Brett McGurk, the special presidential envoy for the global coalition to counter IS, has also resigned in protest.