Ah yeah, I've been here

I know how you feel buddy. It sucks, 'cause girls are...girls, and therefore we don't get it. It's all going good, and then it's not and you can't see what's gone on inside her head, but she's changed her mind. I hear ya.
Mate, your best bet is not to try and understand what she wants, but instead just try and be her friend - if that doesn't get too uncomfortable for either of you, which it may I'm afraid. But try for now. If something happens it happens, but don't lay in wait on her changing her mind - I know that's a lot harder in practice, but pray for wisdom and patience in it. Pray for her as well, this wouldn't be easy on her either, remember that.
It's hard to say whether she'd change her mind, 'cause as much as all guys would like to pigeon-hole all girls into the same box and write a strategy book around it that is universal, such is not the case and each girl is different, obviously. So I don't know how she'd handle it. Some girls are ok with being friends after feelings were between the two of you, some aren't (my ex-girlfriend, for example). And of course it depends on the situation as well.
Just try and be her friend, but don't expect things to not get weird and uncomfortable, 'cause they may. Be prepared to roll with that and back off. This may be an instance where you have to learn to give her some space to figure it out between her and God (if she's of the Lord).
Be aware also that she may not be willing to share deep dark feelings with you, now that she's exposed a part of her like that. Or she may unfortunately be completely over you and has no problems with hanging out with you. Or she may be uncomfortable because she still has emotional feelings for you, but doesn't feel that it's right.
Something like that
Basically - give her some space. Offer support, be friendly, give her space, and pray for God's will to be done, whatever it may be.
Bless ya mate

You'll be in my prayers.
-brad.