"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var object_1 = require("./object");
var BenchmarkTest_1 = require("../BenchmarkTest");
var BenchmarkSuite_1 = require("../BenchmarkSuite");
function getInterface(executor) {
    return {
        registerSuite: function (descriptor) {
            if (!executor.config.benchmark) {
                return;
            }
            if (object_1.isSuiteDescriptorFactory(descriptor)) {
                descriptor = descriptor();
            }
            object_1.registerSuite(executor, descriptor, BenchmarkSuite_1.default, BenchmarkTest_1.default);
        },
        async: BenchmarkTest_1.default.async
    };
}
exports.default = getInterface;
//# sourceMappingURL=benchmark.js.map