Years ago in the days of NiCad I looked at the chargers. There were three types.
1) ΔV these used the fact a NiCad drops slightly on voltage when fully charged, and the charger looked for this slight drop, and then gave a fixed time after the drop. It used constant current.
2) Temperature these had a sensor in the battery, and used the fact electrical energy to chemical energy does not produce as much heat as electrical energy to heat so once fully charged the thermal temperature sensor would open and the charger would latch so stop charging until battery removed and refitted.
3) A instruction to user to remove after set time, common was 16 hours and it would in fullness of time over charge the battery but the battery could stand the over charge for a limited time.
As we went to NiMh the ΔV did not work as well as with the old NiCad and today we have so many types, Li-Ion often had electronics built in
image from Wikipedia, and today it is near impossible to know how each type should be charged other than follow manufacturers instructions.
The charger for my e-bikes auto switch off, and monitoring the power used by the charger I can see when complete, but there is very little to tell one other wise when complete. However the instructions say "Batteries should be fully charged immediately when they are received and immediately after each use for the recommended charge times (see below). Li-lon (Lithium lon) batteries 4-6 hours (2-3 hours for Via brand)" this tells one how long it takes rather than a fixed time limit.
Even with the old flooded lead acid often the charger used the difference between RMS and peak to reduce charge rate as battery is recharged, with the AGM or VRLA over charging needs to be avoided, and today content current chargers are used which charge in stages dictated by the voltage. In the car the engine management notes when it was last fully charged, the same applies with lap top batteries.
Even a 2500 mAh Ni-Mh AA cell says 500 mA for 7 hours. Which is often a problem as early chargers were designed for 500 mAh and have a timer which turns them off before the larger battery is fully charged.