"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
const events_1 = require("events");
// import * as Core from '../../core/src';
// const AntCubeTool = require('antcube-inspector/lib/inspector').default;
class ACInspect extends events_1.EventEmitter {
    open() {
        return __awaiter(this, void 0, void 0, function* () {
            return Promise.resolve();
            // const url = await this.launch();
            // return new Promise((resolve, reject) => {
            //     AntCubeTool.open(url, (value:any)=>{
            //         resolve();
            //     }, (reason:any) => {
            //         reject(new Error('打开JS调试窗口失败'));
            //     });
            // });
        });
    }
    dealmsg(token, message) {
        return __awaiter(this, void 0, void 0, function* () {
            return Promise.resolve();
            // return new Promise((resolve, rejects)=>{
            //     AntCubeTool.dealwithReceivedMsg(token, message);
            //     resolve();
            // });
        });
    }
    launch() {
        return __awaiter(this, void 0, void 0, function* () {
            return Promise.resolve('');
            // return new Promise((resolve, reject) => {
            //     if (this.isready()) {
            //         AntCubeTool.launch(Core.AntCube.socket, () => {
            //             return this.curtoken();
            //         }, (server:any, url:any) => {
            //             resolve(url);
            //         }, ()=>{
            //             reject(new Error('加载JS调试模块失败'));
            //         });
            //     } else {
            //         reject(new Error('启动JS调试模块前请先连接设备'));
            //     }
            // });
        });
    }
    inspectHTML(root) {
        return '';
        // return AntCubeTool.indexHTML(root);
    }
}
exports.ACInspect = ACInspect;
//# sourceMappingURL=inspect.js.map