import { processRules, RuleEngineError } from "./ruleEngineHelpers.ts"; const rules = [ruleA, ruleB, ruleC]; const facts = { fact1: "Some data", fact2: "Some other data", fact3: 42 }; const { errors, events } = await processRules([rule1, rule2, rule3], facts); if (errors.length > 0) { throw new RuleEngineError(errors); }