"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.useEvent = void 0;
const RoomstayEventManager_1 = __importDefault(require("../events/RoomstayEventManager"));
// Thanks to Cerz for the idea
const useEvent = () => {
    return {
        raise: (event) => {
            return RoomstayEventManager_1.default.raise(event);
        },
        on: (eventType, callback, id) => {
            RoomstayEventManager_1.default.addEvent(eventType, callback, id);
        },
    };
};
exports.useEvent = useEvent;
//# sourceMappingURL=EventHook.js.map