"use strict";
/*
 * @Author: zyxeeker zyxeeker@gmail.com
 * @Date: 2024-03-14 16:04:31
 * @LastEditors: zyxeeker zyxeeker@gmail.com
 * @LastEditTime: 2024-03-21 11:00:24
 * @Description:
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Overlay = void 0;
var addon = require("./publish/noverlay.node");
var OverlayImpl = addon.Overlay;
var Overlay = /** @class */ (function () {
    function Overlay() {
        this.window = new OverlayImpl();
        var _res = this.window.Init();
        if (!_res.res) {
            throw "Start failed!, msg: ".concat(_res.msg);
        }
    }
    Overlay.prototype.enable = function (handle) {
        return this.window.Enable(handle);
    };
    return Overlay;
}());
exports.Overlay = Overlay;
