interface GeolocationParams { onSuccess?: PositionCallback; onError?: PositionErrorCallback; } export default function useGeolocation({ onSuccess, onError }?: GeolocationParams): { isAvailable: boolean; position: undefined; getPosition: (config: any) => void; watchPosition: (config: any) => () => void; }; export {};