import type { Events } from "./events.js"; /** Something that raises events, exposing only the read side. */ export interface Eventful> { readonly events: Events; } /** The event map of an `Eventful`, for constraining event names to its own. */ export type EventMapOf>> = T extends Eventful ? E : never;