// Type definitions for core/dispatcher type Omit = Pick>; type Merge = Omit> & N; /** * Adds a new global event listener. Duplicate event handlers will be discarded. */ export function on(name: string, fn: Function, target: React.ReactNode): void; /** * Removes a global event listener. */ export function off(name: string, fn: Function, target: React.ReactNode): void; /** * Adds a new global event listener that removes itself after handling one event. */ export function once( name: string, fn: Function, target?: React.ReactNode, ): Function;