I haven't benchmarked it, but it could probably just be a drop-in replacement as I believe the arguments are compatible. Would be interesting to try!
In practice, there's no real high level documentation. And there is still a considerable amount of "glue" code in ripgrep's main executable. So the library layer exists at a lower level of abstraction, which may or may not be okay for your use case.