like deovrat asked, it all depends on your ticket type....
in all likelihood your immigration & customs will take place in mumbai....after that you probably won't be allowed entry into the domestic terminal till about 3-4 hours before your flight....