I have a component:
interface MyRef { foo: () => Promise; bar: () => Promise; } const Component: React.FunctionComponen