text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.withAnswerOf = void 0;
  const core_1 = require("@serenity-js/core");
  /**
   * @private
   * @param actor
   * @param maybeQuestion
   * @param fn
   */
  function withAnswerOf(actor, maybeQuestion, fn) {
      const answer = core_1.Question.isAQuestion(maybeQuestion)
          ? maybeQuestion.answeredBy(actor)
          : maybeQuestion;
      return fn(answer);
  }
  exports.withAnswerOf = withAnswerOf;
  //# sourceMappingURL=withAnswerOf.js.map