import { ComponentPropsWithRef } from 'react'; /** The response format returned from the getAddress.io API */ export interface FullGetAddress { postcode: string; latitude: number; longitude: number; formatted_address: string[]; thoroughfare: string; building_name: string; sub_building_name: string; sub_building_number: string; building_number: string; line_1: string; line_2: string; line_3: string; line_4: string; locality: string; town_or_city: string; county: string; district: string; country: string; residential: boolean; } export interface AddressAutocompleteInputProps extends ComponentPropsWithRef<'input'> { placeholder?: string; className?: string; inputClassName?: string; onFetchFullAddress?: (address: FullGetAddress) => void; } /** * Renders a text input with location autosuggest via the getaddress.io API. * * pass a onFetchFullAddress callback that will run with the full address when the user has selected one. * * @example * ```tsx * function handleFetchFullAddress(address: FullGetAddress) { * // set address.postcode, address.town_or_city etc on form fields * } * * * ``` */ export default function AddressAutocompleteInput({ className, placeholder, inputClassName, onFetchFullAddress, }: AddressAutocompleteInputProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=address-autocomplete-input.component.d.ts.map