/** * NMEA sentence parser for GPS data. * * Handles GPRMC sentence parsing with checksum validation and * coordinate conversion from degrees-minutes to decimal degrees. */ import type { GprmcData } from './types.js'; /** * Validate NMEA sentence XOR checksum. * * Computes XOR of all bytes between '$' and '*', then compares * with the stated 2-digit hex checksum after '*'. * * @param sentence - Complete NMEA sentence string including $ and *XX * @returns True if checksum is valid, False otherwise */ export declare function validateNmeaChecksum(sentence: string): boolean; /** * Parse NMEA GPRMC sentence for GPS position and speed. * * Extracts latitude, longitude, and ground speed from a valid * GPRMC sentence. Only processes sentences with status 'A' (active fix). * * GPRMC format: * $GPRMC,HHMMSS.sss,S,DDMM.MMMM,N,DDDMM.MMMM,E,SPD,CRS,DDMMYY,,,M*HH * * @param sentence - GPRMC sentence string (comma-separated fields) * @returns GprmcData object with parsed values, or null if invalid or void status */ export declare function parseGprmcSentence(sentence: string): GprmcData | null; //# sourceMappingURL=nmea-parser.d.ts.map