export type FetchPredictions = ( value: string, requestOptions?: RequestOptions, ) => Promise; export type GetAddress
= (placeId: string) => Promise
; export type SearchAddresses
= ( inputValue: string, ) => Promise; interface ReadyAutocompleteClient { fetchPredictions: FetchPredictions; getAddress: GetAddress
; searchAddresses: SearchAddresses
; ready: true; } interface NotReadyAutocompleteClient { ready: false; } export type AutocompleteClient = | ReadyAutocompleteClient | NotReadyAutocompleteClient; export type UseAutocompleteClient< Client extends AutocompleteClient, InitOptions = any > = (options?: InitOptions) => Client;