"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Api = void 0;
const facade_1 = require("./facade");
class Api {
    static create(testplane) {
        return new this(testplane);
    }
    constructor(testplane) {
        this._gui = testplane.gui = facade_1.ApiFacade.create();
    }
    async initServer(server) {
        await this._gui.emitAsync(this._gui.events.SERVER_INIT, server);
    }
    async serverReady(data) {
        await this._gui.emitAsync(this._gui.events.SERVER_READY, data);
    }
}
exports.Api = Api;
//# sourceMappingURL=index.js.map