1.
(defining) X is…; what is meant by X
Picks out a word or idea in order to define or explain it: Xとは~のことだ (X means ~), Xとは何か (what is X?). Formal; casual speech uses って.
2.
(surprise) to think that…; who would have thought
After a plain clause: something happened that the speaker did not expect, often with 思わなかった or with the rest left unsaid.
Related Words
Related:
と (quotation marker)
Related:
とはいえ (even so; although)
Compare:
なんて (the casual equivalents)