The future of Walgreens is uncertain as the beleaguered company nears a major deal.