"Hey! What do have there?" can be written as "He catches my attention and asks me what I had."
"Oops! May I have that apple?" can be written as "He really wants the apple."
"Excellent! Thank you!" can be written as "He is pleased and grateful to me."
The emotions expressed by interjections can be expressed gramatically within the structure of the sentence.