Milwaukee does offer a warranty and will repair out of warranty but any battery tool is by definition not a buy-it-for-life as the battery will wear out (and better tools will come).
My rule is buy so that when it dies I’m not sad. That varies for different pieces of equipment.