There are some clever innovations from some tool manufacturers too.
DeWalt has launched batteries that work with both 18v and 54v systems, by having different pins on the output wired to different points in the battery chain.
(3 sets of 3 in series for 18v, or 9 in parallel for 54v, I’m assuming)