Scattering theory in a pair of spaces