"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setPolicyViolationPublisher = setPolicyViolationPublisher;
exports.resetPolicyViolationPublisher = resetPolicyViolationPublisher;
exports.notifyPolicyViolation = notifyPolicyViolation;
let policyViolationPublisher = null;
function setPolicyViolationPublisher(publisher) {
    policyViolationPublisher = publisher;
}
function resetPolicyViolationPublisher() {
    policyViolationPublisher = null;
}
async function notifyPolicyViolation(violation) {
    if (!policyViolationPublisher) {
        return;
    }
    await policyViolationPublisher(violation);
}
//# sourceMappingURL=violation-publisher.js.map