とは思ってもいなかった

never thought that

→ と
phrase Rare #44,214
never thought that Expresses that something was completely unexpected. The part before とは states what the speaker never thought would happen.
JA: 彼が来るとは思ってもいなかった。
EN: I never thought he would come.

トムは自分がメアリーに惚れるとは思ってもいなかった。

Tom never imagined he would fall for Mary.

あなたにここで会うとは思ってもいなかった。

I never expected to run into you here.

そんな場所で彼女に会おうとは思ってもいなかった。

I never expected to run into her in a place like that.

こんなに沢山の人が来るとは思ってもいなかった。

I never imagined that so many people would come.