export default function Events(): { on: (eventName: string, func: Function) => void; emit: (eventName: string, payload?: object) => void; };