TypeScript definitions for Server-Sent Events