On using visibility correlations to probe the Hi distribution from the dark ages to the present epoch – I. Formalism and the expected signal