"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MergeConfidenceMatcher = void 0;
const tslib_1 = require("tslib");
const is_1 = tslib_1.__importDefault(require("@sindresorhus/is"));
const base_1 = require("./base");
class MergeConfidenceMatcher extends base_1.Matcher {
    matches({ mergeConfidenceLevel }, { matchConfidence }) {
        if (is_1.default.nullOrUndefined(matchConfidence)) {
            return null;
        }
        return (is_1.default.array(matchConfidence) &&
            is_1.default.nonEmptyString(mergeConfidenceLevel) &&
            matchConfidence.includes(mergeConfidenceLevel));
    }
}
exports.MergeConfidenceMatcher = MergeConfidenceMatcher;
//# sourceMappingURL=merge-confidence.js.map