"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.Reporter = void 0;function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}









class Reporter {constructor() {_defineProperty(this, "_cb",
    () => {});}








  async event(event, payload) {
    this._cb({ type: 'event', subType: event, payload });
  }

  async log(message) {
    this._cb({ type: 'log', data: message });
  }

  async debug(message) {
    this._cb({ type: 'debug', data: message });
  }

  async output(hash, filetype, data) {
    this._cb({ type: 'output', subType: filetype, hash, data });
  }

  setCallback(cb) {
    this._cb = cb;
  }}exports.Reporter = Reporter;