/**
 * Registers a plugin by name and event handler map.
 * @param pluginName The name of the plugin to register.
 * @param eventMap An object mapping event keys (string) to handler functions.
 */
export function createPlugin(
  pluginName: string,
  eventMap: Record<string, (...args: any[]) => any>
): void;
