import { useGeolocation } from '../browser-web-apis/useGeolocation'; import { useFetch } from './useFetch'; type GeolocationState = ReturnType; type UseFetchReturn = ReturnType>; /** * A hook that fetches data from an API based on the user's current geolocation. * * @param urlBuilder A function that takes latitude and longitude and returns the URL string or Request object. * @param fetchOptions Options for the underlying useFetch hook (standard RequestInit). * @param geolocationOptions Options for the underlying useGeolocation hook. * @returns An object containing geolocation state and fetch state. */ export declare function useLocationBasedFetch(urlBuilder: (latitude: number, longitude: number) => string | undefined, // Simplified builder fetchOptions?: RequestInit, geolocationOptions?: PositionOptions): { geolocation: GeolocationState; fetch: UseFetchReturn; }; export {};