A written agreement between the two sides was being drafted following the negotiations, according to sources.