The current Hamas charter calls for a 2 state solution with the internationally recognized 1967 borders. But what's written and what leadership would accept might be two different things.
Even what is written is kind of questionable and seems more like wanting it both ways, just look at the beginning of the wikipedia article on the topic https://en.wikipedia.org/wiki/2017_Hamas_charter