Lithium recovery from production waste by thermal pre-treatment