import { watch as i } from "vue";
const f = (t, e, o) => {
  i(
    () => t.sources,
    () => {
      e && e();
    },
    {
      deep: !0
    }
  );
  const c = typeof t.option == "object" && "value" in t.option ? () => t.option.value : () => t.option;
  i(
    c,
    () => {
      o && o();
    },
    {
      deep: !0
    }
  );
};
export {
  f as useWatch
};
