/** * Creates an event emitter that is shared between all windows within the same domain. */ export default function makeSharedEmitter(id: string): { emit: (event: EventKey, ...payload: EventMap[EventKey]) => Promise; addListener: (event: EventKey, listener: (...payload: EventMap[EventKey]) => void) => void; /** * Creates a listener for a particular UUID instead of ApplicationUUID.Workspace. * @param uuid The UUID of the application to subscribe to. */ addListenerWithUUID: (uuid: string) => (event: EventKey, listener: (...payload: EventMap[EventKey]) => void) => void; removeListener: (event: EventKey, listener: (...payload: EventMap[EventKey]) => void) => void; once: (event: EventKey, listener: (...payload: EventMap[EventKey]) => void) => void; };