Degree of Interference: A General Framework For Causal Inference Under Interference (Journal of Machine Learning Research, 2026)