If you eat within defined parameters (calories, carbs, protein) and meet your water goals, you should not gain weight. In fact, you should continue to lose weight. The surgery is not a magic pill. Now is the time for the tough mental work. Eat what you should, and don't eat what you shouldn't. That's all you have to do.
Good luck!