Both sides really need to know what they are doing, and that depends on the jurisdiction.
For example, if you were a UK resident 'employed' by a foreign company you would likely still be deemed a "worker", not "self-employed", subject to minimum wage and statutory annual leave unless the contract is very specific on paper and in facts, and it is unlikely that the employer really wants a "self-employed" contractor.
For example, if you were a UK resident 'employed' by a foreign company you would likely still be deemed a "worker", not "self-employed", subject to minimum wage and statutory annual leave unless the contract is very specific on paper and in facts, and it is unlikely that the employer really wants a "self-employed" contractor.