import { RawUnit, ConditionReport } from "../types"; /** * If unit.conditionals exists, check whether an annotation satistfies the conditions. * * Note that for applications in which the conditionals should be secret (i.e. test unit) * this local version should (ideally) not be used, because it requires the conditionals * to be included in the unit, which users will be able to see (if they know how to). * * When using the python backend, the conditionals are checked server-side. The main reason * for including this client-side version is for demoing and testing with the R backend. */ export default function checkConditions(unit: RawUnit): ConditionReport;