No, you can't overload based on the return type.
From standard docs., Sec 13.1.2,
— Function declarations that differ only in the return type cannot be overloaded.
And regarding your library, each function might belong to a different namespace or else it ain't possible either.