Cosmology with stacked cluster weak lensing and cluster–galaxy cross-correlations