Dynamically import functions into a component with view 3

Hello everyone

I would like to dynamically (not statically) import functions into a component inside tags
My functions are in a pme-check.js file

import { useStore } from 'vuex';
const store = useStore();

function foo() {
  console.log(store.state.foo);
}

function bar() {
  console.log(store.state.bar);
}

export { foo, bar };

In my component I dynamically import my functions like this et ça fonctionne correctement

import(`../composables/profil/${store.state.formation.profil}-check-gj`)
.then((module) => {
    console.log(module.foo());
    // -> 'foo'
    console.log(module.bar());
    // -> 'bar
  }
);

But in this way, my functions cannot be accessed by name in the component.

How to get foo() and bar() anywhere in the of the component.

Thank you