Large-deviation theorems for sums of random variables connected in a Markov chain. I