Interaction of the solar wind with the local interstellar medium: a theoretical perspective