import { computed } from 'vue';

const getGmExports = (elRef, exposeNames) => {
  const exposeFns = exposeNames.reduce((acc, cur) => {
    return { ...acc, [cur]: computed(() => elRef.value?.[cur]) };
  }, {});
  return {
    exposeFns
  };
};
const getGmObjExports = (elRef, exposeNames) => {
  const exposeFns = exposeNames.reduce((acc, cur) => {
    return { ...acc, [cur]: (...args) => elRef.value?.[cur](...args) };
  }, {});
  return {
    exposeFns
  };
};

export { getGmExports, getGmObjExports };
//# sourceMappingURL=exports.mjs.map
