export type UseGeolocationReturns = Pausable & {
/**
* Whether the geolocation API is supported.
*/
isSupported: boolean
/**
* The current latitude.
*/
latitude: number | null
/**
* The current longitude.
*/
longitude: number | null
/**
* The current geolocation state.
*/
isLocating: boolean
/**
* The timestamp when the geolocation was last updated.
*/
locatedAt: number | null
/**
* The error object if any.
*/
error: GeolocationPositionError | null
/**
* The current geolocation coordinates.
*/
coords: Omit<GeolocationPosition['coords'], 'latitude' | 'longitude'> & {
latitude: number | null
longitude: number | null
}
}