foreshadowing a literary technique used by a writer to give hints about what is going to happen later in the narrative .