Best Practice For Reading Current Query On Autocomplete

If I have access to the autocomplete object, search, returned from search = autocomplete(...options), what is the best way to read search's current query value?

It looks like the .getVal() method mentioned here was deprecated, and the upgrades section of the docs does not offer an equivalent method.

Thank you for your help!