I [topic-は] saw-[instant-とたんに] her [quotative-だと] thought.
The pattern ~たとたんに marks an immediately following event ('the moment X happened, Y'). 思った ('thought') here implies an impression or guess rather than full certainty — a quick judgment that the person seen was her.