import type { BackgroundGeolocationConfig, BackgroundGeolocationState, GeolocationConfiguration, GeolocationDiagnosticEvent, GeolocationError, GeolocationOptions, GeolocationResponse, LocationSubscription } from './types'; import { PositionError } from './types'; export { GeolocationOptions, GeolocationResponse, GeolocationError, GeolocationConfiguration, PositionError }; type SuccessCallback = (position: GeolocationResponse) => void | Promise; type ErrorCallback = (error: GeolocationError) => void; export declare const Geolocation: { ready(config?: BackgroundGeolocationConfig): Promise; start(options?: GeolocationOptions): Promise; stop(): Promise; onLocation(success: SuccessCallback, error?: ErrorCallback): LocationSubscription; onHeartbeat(callback: (state: BackgroundGeolocationState) => void | Promise): LocationSubscription; changePace(isMoving: boolean): Promise; setConfig(config: BackgroundGeolocationConfig): Promise; reset(): Promise; startSchedule(): Promise; stopSchedule(): Promise; startGeofences(): Promise; /** Upload pending SQLite locations to configured server URL */ uploadToServer(): Promise; getLocations(): Promise; destroyLocation(uuid: string): Promise; insertLocation(params: Record): Promise; uploadLog(url: string, query?: Record): Promise; requestTemporaryFullAccuracy(purpose: string): Promise; onHttp(callback: (event: { success: boolean; status: number; responseText: string; }) => void): LocationSubscription; onGeofence(callback: (event: Record) => void): LocationSubscription; onGeofencesChange(callback: (event: { on: string[]; off: string[]; }) => void): LocationSubscription; onSchedule(callback: (event: Record) => void): LocationSubscription; onEnabledChange(callback: (enabled: boolean) => void): LocationSubscription; onMotionChange(callback: (event: { isMoving: boolean; }) => void): LocationSubscription; sync(): Promise; getState(): Promise; onDiagnostic(callback: (event: GeolocationDiagnosticEvent) => void): LocationSubscription; getDiagnostics(): Promise; getCurrentPosition(success: SuccessCallback, error?: ErrorCallback, options?: GeolocationOptions): void; watchPosition(success: SuccessCallback, error?: ErrorCallback, options?: GeolocationOptions): number; clearWatch(watchId: number): void; stopObserving(): void; requestAuthorization(levelOrSuccess?: "whenInUse" | "always" | (() => void), error?: ErrorCallback): Promise | void; getAuthorizationStatus(): Promise<{ status: string; always: boolean; }>; setRNConfiguration(config: GeolocationConfiguration): void; syncPendingLocations(): Promise; getQueueSize(): Promise; setTrackingMode(mode: string): Promise; setActivityPaused(paused: boolean): Promise; getEngineState(): Promise>; addAuthorizationListener(callback: (status: { status: string; }) => void): () => void; }; export default Geolocation; //# sourceMappingURL=Geolocation.d.ts.map