Earlier quoted context omitted.
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.
The thing to remember with battery powered tools is that you are not just buying a tool. You are buying into a battery ecosystem. Plan accordingly. Fortunately, you can buy batteries for most popular tool brands long after the brand stops supporting them, and in a pinch you can buy adapters to make brand a batteries work on brand b tools
Milwaukee continues to sell batteries for their far outdated NiCAD.