An extension of the pair-correlation conjecture and applications