You have to specify it. Normally it is done using P and N channel MOSFETs tied together. But you have to control the current flowing out or into the GPIO. This is really a function of number of GPIOs you are going to make, power dissipation your chip can handle. Rule of the thumb, at 3.3 to 5V systems you may want to have +/-25mA. On <2V systems u may want +/-4mA. The best place for you to look for there design is to look into some MCU datasheets. PIC GPIOs for example.