export default class GlobalEvents {
    static addEventListener(name, eventFunction) {
        window.addEventListener(name, eventFunction);
    }
    static removeEventListener(name, eventFunction) {
        window.removeEventListener(name, eventFunction);
    }
    static dispatchEvent(name, data) {
        // Create a custom event with data
        const event = new CustomEvent(name, {
            detail: data || {},
        });
        // Dispatch the event
        window.dispatchEvent(event);
    }
}
//# sourceMappingURL=GlobalEvents.js.map