It is well known that Pakistan hosted many anti-Soviet Sunni fundamentalist groups, who continue to generate problems for Pakistan (and the world) to this day.
If Iran did provide sanctuary to anti-Soviet Afghan factions, they most likely would have come from Afghanistan's Shiite minority refugees. On the other hand, I suspect Iran would have maintained a hands off policy in this conflict in light of its war with Iraq at the time.