WASHINGTON — The United States once vowed to liberate Afghan women from the draconian repression of the Taliban, but a planned deal between the U.S. and the insurgents offers no protections for the country's women, who fear that their hard-won rights could be lost.

The proposed U.S.-Taliban deal, which the Trump administration said Friday will be signed Feb. 29 after a partial truce goes into effect, would set out a timeline to withdraw American troops in exchange for the Taliban's renouncing terrorism and entering into peace talks with the Afghan government. But the agreement provides no guarantees to preserve women's rights or civil liberties enshrined in the country's constitution, which the insurgents do not recognize.

The Trump administration, eager to pull U.S. troops out of America's longest war, is treating the issue as an internal matter to be hammered out among the Afghans in future peace talks, which are supposed to start once the U.S.-Taliban deal is signed.

Afghan women boxers practice at the Kabul stadium boxing club on March, 5, 2014. Massoud Hossaini / AP file

The United States would "support whatever consensus the Afghans are able to reach about their future political and governing arrangements," Molly Phee, the U.S. deputy special representative for Afghanistan reconciliation, said Tuesday at an event at a Washington think tank.

For years, the U.S. promoted the idea of safeguarding Afghan women's rights as a part of the rationale for its fight against the Taliban, a cause first championed by President George W. Bush.

But President Donald Trump's impatience with the U.S. troop presence in Afghanistan, and the uncertainty surrounding a potential peace process, could jeopardize two decades of progress for Afghan women, who have gained a foothold in the workplace and in political life, according to rights advocates, Afghan officials and former U.S. officials.

"The question is whether peace will come on the backs of women," said Gayle Tzemach Lemmon, the author of "The Dressmaker of Khair Khana," about an Afghan woman's struggle for dignity under Taliban repression.

Under the Taliban's extremist rule from 1996 to 2001, women were barred from attending school, holding jobs, taking part in politics and leaving their homes without male escorts. Violators were flogged in public, beaten or stoned to death. Since U.S.-led forces toppled the Taliban in 2001 after the terrorist attacks of Sept. 11, Afghan women have experienced a sea change in their status.

In the past two decades, women have entered universities and the workplace in unprecedented numbers, with dozens of women holding seats in Parliament and thousands serving as teachers, doctors and even police officers. The country's culture also has evolved, with annual surveys showing that an overwhelming majority of Afghans now support women's right to work and to education.

But in areas of the country where the Taliban retains control, women face severe restrictions and have come under attack for trying to go to school, according to human rights groups.

"We've already seen the oppression of women and girls return where the Taliban has regained control," Sen. Jeanne Shaheen, D-N.H., a member of the Foreign Relations Committee, said in an interview. "We should not risk unraveling the progress that's been made."

Download the NBC News app for breaking news and politics

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

Belquis Ahmadi, an Afghan-born human rights expert who has worked with the U.S. Agency for International Development, said she is concerned about the fate of women in a future peace settlement with the Taliban. To protect the progress that has been made, Ahmadi said, the U.S. and other foreign governments need to pressure the Taliban and the future Afghan government to uphold fundamental rights for women.

"We, the international community — especially the U.S. — can and should use leverage over them," said Ahmadi, a senior program officer at the U.S. Institute for Peace. "What the Taliban want is recognition that they have evolved. I think we should not give them that recognition without abiding by rules and respecting international laws and treaties."

Secretary of State Mike Pompeo and other U.S. officials have said future U.S. and international aid will be contingent on Afghanistan's respecting rights for women and minorities. But the Trump administration has never made it clear whether the pullout of American troops would be contingent on a final peace deal or a commitment to preserving women's rights.

The State Department did not respond to a request for comment.

In the Qatari capital, Doha, an all-male Taliban delegation has held marathon talks with U.S. special envoy Zalmay Khalilzad and other officials since November to work out the terms of the deal, which the Trump administration refers to as a peace agreement.

"Unfortunately, Afghan women have been excluded from the process so far," Ahmadi said.

When Shaheen grilled Pompeo in April over whether the administration was pushing the Taliban and the Afghan government to include women in the discussion, Pompeo said, "I hope the [Afghan] women will make themselves heard to their leadership."

In the peace talks that are supposed to follow the signing of the U.S.-Taliban agreement, it's not clear whether women will play a prominent role in the government's delegation, which will include representatives from inside and outside the government.

"I remain concerned about the future for Afghan women under any agreement with the Taliban, which is why I continue to press the administration to prioritize women's inclusion in this peace process," Shaheen said. "There is so much at stake."

Afghan refugee women wait to scan their eyes at the U.N. registration center in Peshawar, Pakistan, on June 19, 2017. Abdul Majeed / AFP - Getty Images file

The Taliban have offered vague suggestions that they will adopt a less draconian stance toward women than when they ruled Afghanistan, without offering details.

"They will have all their rights. Whether it is right for education or it is right for work, they will have it according to Islamic rules," a Taliban spokesman, Sohail Shaheen, said in an interview last year. "So there will be no problem with that."

Under the terms of the U.S.-Taliban deal, which have not been released yet, American troops likely would withdraw over a period of years. Once all U.S. troops depart, many military analysts and former U.S. officers say, the Kabul government will be hard-pressed to fend off the Taliban. It's not clear whether the U.S. would still carry out air strikes in an emergency.

The Defense Department last year stopped releasing figures on how many districts were under government or Taliban control. The last reported numbers, in Jan. 30, 2019, showed that the government controlled only 53.8 percent of all districts, while 12 percent were under Taliban control or influence, with the remaining 34 percent contested. That marked an all-time low for the government.

Despite the uncertainty over the country's future, Ahmadi said she has reason to be hopeful given the attitudes of younger Afghan women.

"The women of today are very different than my generation. They have been loud and clear they won't go back to the traditional roles, to go back to the earlier era when they were subject to public humiliation, flogging and exclusion from social, political and economic rights," she said.

The Taliban's former envoy to Saudi Arabia Shahabuddin Delawar, left, arrives with Taliban negotiator Abbas Stanikzai, right, and other officials at Intra Afghan Dialogue talks in the Qatari capital, Doha, on July 7, 2019. Karim Jaafar / AFP - Getty Images file

The female Afghan ambassador to the U.S., Roya Rahmani, declined to comment on the implications of the U.S.-Taliban deal, but she said, "The women of Afghanistan are extremely resilient."

After the U.S.-led intervention in Afghanistan following the 9/11 attacks, which ousted the Taliban regime for sheltering al Qaeda leaders, the Bush White House made the plight of Afghan women a top priority.

First lady Laura Bush took over her husband's weekly radio address on Nov. 17, 2001, to draw attention to the plight of Afghan women, calling for international condemnation of the Taliban's repression. The State Department at the time issued a report on "the Taliban's War Against Women."

President Barack Obama sought to scale back the U.S. military mission, but his first secretary of state, Hillary Clinton, highlighted women's issues and once said at a meeting of female activists in Kabul that any peace deal "can't come at the cost of women and women's lives."

"Going back to 2001, the treatment of women by the Taliban in Afghanistan was one of the central tenets of engagement by the U.S. and coalition countries in Afghanistan," said Anita McBride, who served as chief of staff to Laura Bush and in other senior government posts. "Beyond defending ourselves and rooting out terrorism, there was a very real case for humanitarian assistance for women and children."

Trump's daughter Ivanka Trump, who has led a global initiative to empower women, said via video at a conference on Afghan women in Kazakhstan in September 2018 that "the United States stands side by side with the brave Afghan women and girls as they strive to create a stable and prosperous future for their children and families."

Afghan women have harbored fears for years that if the outside world lost interest in Afghanistan, their newly won rights would be lost, McBride said.

One moment during the closing months of the Bush administration has stuck with McBride. The first lady held a farewell meeting with a group of female Afghan members of Parliament in the Roosevelt Room of the White House. "One of them stretched her arm across the table to take Mrs. Bush's hand and said, 'Please don't forget us.'"

CORRECTION (Feb. 23, 2020, 7:55 p.m. ET): An earlier version of this article misspelled the last name of the U.S. special envoy for Afghanistan. He is Zalmay Khalilzad, not Zalmay Khailizad.