Foreshadowing is a literary device that provides hints or clues about future events in a story. It often appears at the beginning of a story or chapter to help readers develop expectations of what is to come. Any element of a story, such as events, actions, titles, or chapter names can act as foreshadowing by hinting at future plot developments and creating suspense for readers.