interface HereMapsGeocodeResponse { items: { address: { city: string; countryName: string; state: string; }; position: { lat: number; lng: number; }; }[]; } export default class PostCodeResolver { static readonly ERROR_POSTCODE_NOT_FOUND = "Postcode not found"; static readonly ERROR_SEARCH_FAILED = "Search failed"; static readonly ERROR_NOT_IN_UK = "Not in the UK"; static readonly POSTCODE_REGEX: RegExp; static getValidGeocodeData(location: string): Promise; static extractPostcodeFromString(locationOrPostcode: string): string | null; /** * Geo code only returns a partial postcode. * Resolve the lat/lng to get the full postcode. */ static fromLatLng(lat: number, lng: number): Promise; /** * Take a location string then: * 1. Test it’s a valid UK address * 2. If the location contains a postcode return it * 3. If the location does not contain a postcode use the lat/lng to get the postcode */ static fromString(location: string): Promise; } export {};