import React from 'react'; export declare const GooglePlacesAPIContext: React.Context<{ available: boolean; }>; export interface ILocation { lat: number; lng: number; } interface IPredictionsOptions { types?: string[] | undefined; location?: ILocation | undefined; radius?: number | undefined; components: { countries: string | string[] | undefined; }; } interface IPredictionSubstring { length: number; offset: number; } interface IAutocompleteStructuredFormatting { main_text: string; main_text_matched_substrings: IPredictionSubstring[]; secondary_text: string; } interface IPredictionTerm { offset: number; value: string; } export interface IPrediction { description: string; matched_substrings: IPredictionSubstring[]; place_id: string; reference: string; structured_formatting: IAutocompleteStructuredFormatting; terms: IPredictionTerm[]; types: string[]; } export interface IGooglePlacesAPIProviderProps { children: React.ReactNode; apiKey: string; language?: string; libraries?: string; } export declare const GooglePlacesAPIProvider: ({ children, apiKey, language, libraries, }: IGooglePlacesAPIProviderProps) => JSX.Element; export declare const useGooglePlacesAPI: () => { available: boolean; }; export declare const useAddressPredictions: (input: string, { types, location, radius, components }: IPredictionsOptions) => { available: boolean; predictions: IPrediction[]; getPlacePredictions: (input: string) => Promise; }; export {};