Welcome to healthcare Magic!
It may be a TIA
if you have a strong history of heart disease
and TIAs in the family.
But if not it would be more likely a Syncope
Recall the finer details if you were lying/sitting and then sharply stood up or walked and suddenly had the episode then I am pretty sure you had an Syncope only.
Otherwise both possibilities have equal chances.
If you have any further query please put-up an follow up query.
Wish you a great health!