Get index of the closest point in a Curve3D with a given an offset

Godot Version

4.3

Question

I would like to get just the index of a baked point from a Curve3D from a given offset. Similar to sample_baked function, except it would return an Int instead of a Vector3.
There don’t seem to be any functions in Godot that return point indices, just Vector3s