import { computed as i } from "vue";
function a(r, t) {
  const n = [];
  return t && t.length > 0 && t.forEach((e) => {
    const o = e(r);
    typeof o == "string" && n.push(o);
  }), {
    isValid: n.length === 0,
    errors: n
  };
}
function f(r, t) {
  return i(() => a(r.value, t));
}
export {
  f as useValidation,
  a as validateFormValue
};
//# sourceMappingURL=useValidation.js.map
