import { ReverseGeocodingOptions, ReverseGeocodingResult, ReverseGeocodingResultJP } from './interfaces/index'; type LngLat = [number, number]; /** * Performs reverse geocoding to obtain location information based on longitude and latitude. * * @param lnglat - The longitude and latitude coordinates. * @param options - Optional parameters for reverse geocoding. * @returns A promise that resolves to the reverse geocoding result. */ declare const openReverseGeocoder: (lnglat: LngLat, options?: ReverseGeocodingOptions) => Promise; /** * Performs reverse geocoding using the GSI (Geospatial Information Authority of Japan) API. * Given latitude and longitude coordinates, it returns the corresponding municipality code and city name. * * @param {Object} params - The parameters for the reverse geocoding request. * @param {number} params.lat - The latitude coordinate. * @param {number} params.lon - The longitude coordinate. * @returns {Promise} A promise that resolves to an object containing the municipality code and city name. * * @example * const result = await gsiReverseGeocoder({ lat: 35.6895, lon: 139.6917 }); * console.log(result); // { code: '13101', city: 'Chiyoda-ku' } */ declare const gsiReverseGeocoder: ({ lat, lon, }: { lat: number; lon: number; }) => Promise; /** * Retrieves the elevation for a given longitude and latitude using the GSI API. * * @param {Object} coordinates - The coordinates for which to get the elevation. * @param {number} coordinates.lon - The longitude of the location. * @param {number} coordinates.lat - The latitude of the location. * @returns {Promise<{ longitude: number, latitude: number, elevation: number }>} * A promise that resolves to an object containing the longitude, latitude, and elevation. */ declare const getElevation: (lat: number, lon: number) => Promise<{ longitude: number; latitude: number; elevation: number; }>; /** * Reverse geocodes the given longitude and latitude to obtain a city code. * * @param {Object} params - The parameters for reverse geocoding. * @param {number} params.lon - The longitude of the location. * @param {number} params.lat - The latitude of the location. * * @returns {Promise} A promise that resolves to the reverse geocoding result. * * @throws Will attempt to use an alternative geocoding service if the primary service fails. */ declare const latLonToAddress: (lat: number, lon: number) => Promise; export { latLonToAddress, getElevation, gsiReverseGeocoder, openReverseGeocoder, };