Here (https://poligo.com/en/articles/grammar/when-use-can-or-be-able-ability) it was written:
If you mean "know how to", use "can":
I can cook
Can you speak French?
There is a difference between these two sentences:
Can you cook?
Are you able to cook?
If I ask you (1), that means "Do you know how to cook?" If I ask you (2), that means "Do you have time to cook?" It is asking about your situation, and if it is possible for you to do it.
Then we have a problem which is what does the next thing mean:
I will be able to cook ?
It will be taken like:
I will know how to cook
I will have time to cook ?