export interface GeolocationState { coords: GeolocationCoordinates | null; error: GeolocationPositionError | null; loading: boolean; stop(): void; } export interface GeolocationOptions extends PositionOptions { watch?: boolean; } /** * A hook that provides access to the device's geolocation. * * @param opts Configuration options: * - watch: If true, continuously watch for location changes (uses more battery) * - enableHighAccuracy: Provides more accurate position (uses more battery) * - timeout: Maximum length of time to wait for a position * - maximumAge: Maximum age of a cached position * @returns Object containing coordinates, error state, loading state, and stop function * * @example * // One-time location request * const { coords, error, loading } = useGeolocation(); * * @example * // Continuous watching with high accuracy * const { coords, stop } = useGeolocation({ * watch: true, * enableHighAccuracy: true * }); */ export declare function useGeolocation(opts?: GeolocationOptions): GeolocationState;