Quantum theory of complex ultracold collisions