import type { AutocompleteOptions as NativeOptions, GetPlaceOptions } from "./specs/Places.nitro"; import { CircularLocationBounds, RectangularLocationBounds } from "./locationBounds"; export type LocationBounds = CircularLocationBounds | RectangularLocationBounds; export type AutocompleteOptions = Omit & { locationBias?: LocationBounds; locationRestriction?: LocationBounds; }; export type { GetPlaceOptions }; declare const places: { autocomplete: (query: string, options?: AutocompleteOptions) => Promise; getPlace: (placeId: string, options?: GetPlaceOptions) => Promise; /** * @deprecated `autocompleteWithDetails` is deprecated and will be removed in a * future version. Fetch details only for the place the user selects: call * `autocomplete` and then `getPlace` on the chosen prediction. Fetching * details for every prediction is expensive and cannot share a single billing * session (Google allows one place-details request per session). */ autocompleteWithDetails: (query: string, options?: AutocompleteOptions) => Promise; createSessionToken: () => string; }; export { CircularLocationBounds, RectangularLocationBounds }; export type { AddressComponent, PlaceAutocompleteResult, PlaceDetails } from "./specs/Places.nitro"; export default places;