import type { HttpConfig, HttpEvent, LocationSubscription } from './types'; type HttpCallback = (event: HttpEvent) => void; /** * Native HTTP auto-sync for background location uploads. * * Instead of sending each point to your server via JS (which won't work * when the app is killed on Android), configure the native layer to * upload directly from the native process. * * On Android headless mode, this completely replaces the need for a * running JS context — locations are collected by the foreground service * and uploaded directly to your server. */ export declare class HttpSync { private httpListeners; private configured; /** * Configure HTTP auto-sync. * Must be called before tracking starts to take full effect. */ configure(config: HttpConfig): void; /** * Whether HTTP auto-sync is configured. */ get isConfigured(): boolean; /** * Manually trigger a sync of all pending locations to the server. * Returns the locations that were synced. */ sync(): Promise[]>; /** * Subscribe to HTTP response events from the server. */ onHttp(callback: HttpCallback): LocationSubscription; /** Internal: called by native event emitter */ _handleHttpEvent(event: HttpEvent): void; /** * Destroy all pending locations in the database without uploading. */ destroyLocations(): Promise; /** * Get count of pending locations. */ getCount(): Promise; } export declare const httpSync: HttpSync; export default HttpSync; //# sourceMappingURL=HttpSync.d.ts.map