import { BaseAddress } from '@bit-ui-libs/common'; export interface AddressComponent { long_name: string; short_name: string; types: string[]; } export interface PlaceDetails { result: { formatted_address: string; address_components: AddressComponent[]; name: string; }; } export interface Substring { length: number; offset: number; } export interface Term { offset: number; value: string; } export interface Prediction { description?: string; matched_substrings?: Substring[]; place_id?: string; reference?: string; structured_formatting: { main_text: string; main_text_matched_substrings?: Substring[]; }; address: { city: string; country: { code: string; name: string; }; state: { code: string; name: string; }; zip: string; }; terms?: Term[]; types?: string[]; name?: string; } export interface GoogleAutoComplete { predictions: Prediction[]; } export type BaseAddressFromPlaces = Omit; interface UseGoogleAddressOptions { search?: string; } /** * Hook for handling Google Autocomplete & Places API integration. * * @param options Pass `search` string here * @returns `react-query`-like payload */ export declare function useGoogleAddress(options: UseGoogleAddressOptions): import("@tanstack/react-query/build/legacy/types").UseQueryResult; export {}; //# sourceMappingURL=use-google-address.d.ts.map