/** * Hook to retrieve the user's current location. * * The hook returns an array of three elements: * * 1. The current location as an object with latitude and longitude * properties. The initial value is `{ latitude: 0, longitude: 0 }`. * 2. An error string if an error occurred while retrieving the location, * or `null` if no error occurred. The initial value is `null`. * 3. A function to request the user's location permission and retrieve * the current position. The function takes no arguments and returns * no value. * * The hook uses the `getCurrentPosition` method of the `Geolocation` * API to retrieve the user's location. The request is made with high * accuracy mode enabled. * * @returns An array with the current location, an error string (or null), * and a function to request the user's location permission. */ export declare function useLocation(): readonly [{ latitude: number; longitude: number; }, string | null, () => void];