A senior US government official, speaking after six days of US peace talks with Afghan Taliban militants, said that Washington was committed to withdrawing foreign forces from Afghanistan to end more than 17 years of war.
The official, who declined to be identified, described "significant progress" in talks last week with the Taliban in Qatar about a foreign troop pullout, but more negotiations were needed on a ceasefire and its timing.
"Of course we don't seek a permanent military presence in Afghanistan," the official said in the capital Kabul.
"Our goal is to help bring peace in Afghanistan and we would like a future partnership, newly defined with a post-peace government," the official said.
"We would like to leave a good legacy."
There could not be a withdrawal without a ceasefire, the official said.
The issue looms as a sticking point in the next round of talks on February 25, with the US official saying that Taliban negotiators wanted a full withdrawal before a ceasefire.
Despite the presence of US-led foreign forces training, advising and assisting their Afghan counterparts, the Taliban controls nearly half of Afghanistan and stages near-daily attacks against the Western-backed Afghan government and its security forces.
There were reports last month that the United States was considering pulling out almost half of its forces, but a White House spokesman said that US President Donald Trump had not issued orders to withdraw.
However, the administration has not denied the reports.
Both US officials and the hardline Islamic group hailed progress after the talks on Saturday with US special peace envoy Zalmay Khalilzad.
He told the 'New York Times' yesterday that a draft framework had been completed but details still needed to be fleshed out.
Taliban sources told Reuters on Saturday that the United States had agreed on the withdrawal of foreign troops within 18 months of the signing of a pact.
But the US official said that a timeline has not been discussed.
The United States has about 14,000 troops in Afghanistan as part of a Nato-led mission and a US counter-terrorism mission largely directed at groups such as Isil and al-Qa'ida.
Some 8,000 troops from 38 other countries are participating in the operation, known as Resolute Support.
The official said progress was made on addressing core US concerns that Afghanistan will not be used as a base by al-Qa'ida or Isil for attacks against the United States and its allies.
"That is why we came to Afghanistan in the first place," the official said.
Apart from the ceasefire, the Taliban did not discuss the need for talks with the Afghan government to reach a durable political settlement, the US official said.
The Taliban has repeatedly refused to talk to the Afghan government, which it sees as a puppet of the United States, throwing into question how effective a peace deal could really be.
The Taliban does want, however, to join an interim government post-deal - something that alarms Afghan President Ashraf Ghani.
Mr Khalilzad, an Afghan-born American diplomat, met Mr Ghani for four hours on Sunday to outline progress and seek his support.
In response, Mr Ghani said in a televised address that the presence of foreign forces was based on an international agreement and they will not be required for ever.
"No Afghans want foreign forces in their country for the long term," Mr Ghani said.
"The current presence of foreign forces is based on need...and according to an exact and arranged plan we are trying to bring down that number to zero."