Ukraine's opposition leaders have signed a deal with the president and European mediators for early elections and a new government in hopes of ending a deadly political crisis.
It could be a major breakthrough in a months-long crisis over Ukraine's future and identity that worsened sharply this week and left scores dead. A key question is whether the thousands of protesters camped out in Kiev will heed it.
Two opposition spokeswomen said the deal was signed in the Ukrainian president's office Friday, but had no details.
The signing came hours after Ukrainian President Viktor Yanukovych announced early presidential elections and promised to bring opposition members into the government. He did not give a time frame.
THIS IS A BREAKING NEWS UPDATE. Check back soon for further information. AP's earlier story is below.
Ukraine's president gave in to pressure from European diplomats and offered concessions Friday to defuse a crisis that has divided his country and left scores dead. Shots rang out near Kiev's protest camp and protesters fought among themselves about what to do next.
The capital remained tense after President Viktor Yanukovych announced early presidential elections and promised to bring opposition members into the government - but didn't say when.
German and Polish officials and an opposition spokeswoman said the Maidan protest movement had agreed to a deal with the president. But it is unclear whether the president's belated concessions will be enough to satisfy protesters who have occupied a piece of Kiev and government buildings around the country in a nationwide battle over the identity of their country.
European foreign ministers had stayed up all night in Kiev trying to negotiate an end to the standoff, prompted when the president aborted a pact with the European Union in November in favor of close ties with Russia instead.
Germany's Foreign Ministry tweeted Friday afternoon that the Maidan council, which has been leading the protest movement, "has decided that opposition leaders can sign the agreement." A spokeswoman for opposition leader Vitaly Klitschko, Oksana Zinovyeva, told The Associated Press that opposition figures were heading to the president's office and had agreed to a deal.
An EU official in Brussels said that if an agreement is signed, Russia and the EU would act as observers to ensure that it is implemented. Russia's government did not immediately comment.
The U.S., Russia and European Union are deeply concerned about the future of Ukraine, a nation of 46 million that has divided loyalties between Russia and the West. Shots were heard again Friday near the protesters' camp in Kiev, a day after the deadliest violence in Ukraine's post-Soviet history. It is unclear who was targeted and whether anyone was hurt or injured in Friday's incident.
Small groups of protesters advanced toward the president's office, torching one truck and seizing two others. Scuffles broke out between a few dozen radicals who wanted to attack the building and more moderate protesters.
Police who had been guarding the Ukrainian parliament building left Friday afternoon, taking their trucks and water cannon with them but leaving behind mattresses and hard hats. They were heading away from the protest camp, but it was unclear why they abandoned their positions.
"As the president of Ukraine and the guarantor of the Constitution, today I am fulfilling my duty before the people, before Ukraine and before God in the name of saving the nation, in the name of preserving people's lives, in the name of peace and calm of our land," the president said in a statement on his website.
Yanukovych also promised constitutional reforms trimming presidential powers, a key demand of protesters.
The opposition rejected similar invitations to join the government in the past, saying that constitutional reform giving parliament greater powers has to be passed first.
On the early elections, a Yanukovych ally said that they would be held in December instead of March - not soon enough for many protesters enraged by police violence.
Lawmaker Inna Bogoslovskaya, allied with the opposition, told The AP that December is too late for elections. "After 77 corpses yesterday ... that changes the stakes," she said. "The Maidan (protest movement) demands immediate resignation of the president instead of early elections."
Protesters will not abandon occupied buildings until after the constitution is changed, she added.
Polish Foreign Minister Radoslaw Sikorski, who is involved in the negotiations in Kiev, called for calm and said he was going to meet with protesters on the Maidan. He tweeted that it's a "delicate moment for the settlement and all must remember you don't get 100 percent in a compromise."
The German Foreign Ministry tweeted that Foreign Minister Walter Steinmeier and Sikorsky were to hold more talks with opposition leaders and protesters Friday.
All this was not enough for some protesters, who accused the president of trying to buy time and want him out immediately.
"We don't believe him. He has cheated the people before. He declared a truce, and then there was shooting," said Valentin Mashul, manning a table with a collection box for money donations for the protesters.
"It's completely not enough," said protester Anton Gusev, standing at one of the barricades near city hall. Referring to the election date, he said, "December or March - what difference does it make?"
At the city hall barricade, protesters were busily organizing stacks of tires. The street was crowded with people heading toward the central square.
Several regions in the west of the country are in open revolt against the central government, while many in eastern Ukraine back the president and favor strong ties with Russia, their former Soviet ruler.
In a sign of the high tensions, armed law enforcement officers tried to enter parliament Friday morning during a debate over measures to end the crisis. Shouting lawmakers pushed them out.
A group of police officers from western Ukraine arrived on Kiev's Independence Square to support the opposition, and one told The Associated Press that they had arms.
The report of a deal followed the worst violence yet in the confrontation between the government and protesters.
Protesters advanced on police lines in the heart of the Ukrainian capital on Thursday, prompting government snipers to shoot back and kill scores of people in the country's deadliest day since the breakup of the Soviet Union a quarter-century ago.
A statement on the website of the Health Ministry said 77 people had been killed between Tuesday morning, when the violence began, and Friday morning. The statement said 577 people had been wounded and 369 hospitalized. Opposition sources claimed at least 70 on their side were killed Thursday.
There was no way to immediately verify the figures.
Protesters across the country are upset over corruption in Ukraine, the lack of democratic rights and the country's ailing economy, which just barely avoided bankruptcy with the first disbursement of a $15 billion bailout promised by Russia.
The violence is making Ukraine's economic troubles worse. Ratings agency Standard & Poor's downgraded Ukraine's debt rating Friday, saying the country will likely default if there are no significant improvements in the political crisis, which it does not expect.