The deal, which is expected to close in mid-2025, comes during a boom for the private credit space.