Revert "Only allow export declaration inside a module body."

This reverts commit 909277e0bb7f6310a82936b9cbe51e8f313987ff.