A friendly, informal, casual greeting said upon someone's arrival.
An exclamation to call attention.
The word "hi" used as a greeting.
A polite reaction to receiving thanks, meaning that the speaker enjoyed helping the listener.