The word intended is important in that sentence!
My wife had lived here and worked in the nhs for over 20 years. She doesn't have a UK passport. Not for that matter do I.
IF parliament votes for brexit is she guaranteed that she can remain here, in her job? We'll have to see what watertight...