export type LatLng = {
    lat: number;
    lng: number;
};
export declare function haversineMeters(a: LatLng, b: LatLng): number;
export declare function pathLengthMeters(points: LatLng[]): number;
export declare function downsamplePath(points: LatLng[], minSpacingM?: number): LatLng[];
export declare function chunkArray<T>(arr: T[], size: number): T[][];
export declare function encodePipePolyline(points: LatLng[]): string;
export declare function decodeGoogleEncodedPolyline(encoded: string): LatLng[];
export declare function roundKm(meters: number): number;
export declare function classifySegmentKind(opts: {
    meanAccuracy?: number;
    gapSeconds?: number;
}): 'gps_verified' | 'map_matched' | 'estimated';
export declare function confidenceForKind(kind: 'gps_verified' | 'map_matched' | 'estimated', meanAccuracy?: number): number;
