Immigration won't solve the long term declining birthrates because it's a globally systemic problem. Moving people from one country to another won't actually solve the population decline globally - which is needed to support the broader global financial trade markets that have propped up the golden financial age we've experienced over the last 70 years.
"The End of the World is Just the Beginning" has been a great read so far (about halfway through it as of this comment) and the author, Peter Zeihan, dedicates a significant portion of the book to discussing the problem of population decline in-depth.
Obviously our economies are going to need to find a way to adapt to declining populations within the next few decades, and there's something to be said for countries like Japan being ahead of the curve there, but at this stage it's hard to see how they can adapt quickly enough without avoiding significant economic disruption.
"The End of the World is Just the Beginning" has been a great read so far (about halfway through it as of this comment) and the author, Peter Zeihan, dedicates a significant portion of the book to discussing the problem of population decline in-depth.