First you need to check how to chatge eacjh type of cell attached is some ideas.
Once you have done this you can set about designing the charger to do the work.
since you want to charge different types of batteries which have different cycles etc my advice would be to microprocessor the charging cycles and then then have different circuits switch in depending upon a selection