Let me try to summarize:
At three separate times in biblical history, God used miracles to confirm a new revelation of his will: during the days of Moses, during the days of Elijah and Elisha, and during the first years of the New Testament era.
I believe that the Holy Spirit was poured out on the day of Pentecost, and that there was no indwelling Spirit before this time. From our point of view, we were immersed by this outpouring, baptized with the Spirit as the text says. Before this time, men could have the Spirit come upon them, enabling them to do miracles, and they could be filled with the Spirit, filling their lives with spiritual power, though not necessarily miraculous power.
The power to do miracles is separate from the indwelling Spirit (in Acts 8, we see people who have the indwelling Spirit, but not the outward manifestation; in Acts 10, we see people receive the outward manifestation before receiving the indwelling Spirit). The apostles received the power to do miracles and could pass this on to others, but these “secondary recipients” could not pass on the outward gifts. The miraculous gifts were never meant to be permanent; Paul said they would cease when maturity was reached. Hebrews 2:4 speaks of miracles in the past tense, as do the early Christian writers, those who wrote from the second century onward.
Miracles were a sign of apostolic authority; those possessing miraculous gifts had been with the apostles and therefore could be considered as bearing their teaching. Miracles confirmed the validity of what was taught. Eventually the doctrine was established in such a way that this was no longer necessary.
Again, there is speculation and inference in much of this. I do not and will not draw lines of fellowship based on these teachings. But this framework helps me understand what I see in the New Testament regarding miracles. I hope it helps you as well.