/** * kOS Output Parser Utilities * * Helpers for parsing labeled output from batched kOS commands. * * Example usage: * // kOS command: PRINT "ALT:" + ALTITUDE. PRINT "APO:" + APOAPSIS. * // Output: "ALT:85000\nAPO:100000" * const parsed = parseLabeled(output); * // { ALT: "85000", APO: "100000" } */ /** * Parse labeled output from batched kOS PRINT commands. * * Expected format: "LABEL:value" on each line. * Example: "ALT:85000\nAPO:100000\nENA:True" * * @param output Raw kOS output string * @returns Record mapping labels to their string values */ export declare function parseLabeled(output: string): Record; /** * Parse a labeled value as a number. * Returns 0 if not found or not parseable. */ export declare function parseLabeledNumber(output: string, label: string): number; /** * Parse a labeled value as a boolean. * Returns false if not found. */ export declare function parseLabeledBool(output: string, label: string): boolean; /** * Parse multiple labeled numbers at once. * * @param output Raw kOS output * @param labels Labels to extract * @returns Object with numeric values (0 for missing/invalid) */ export declare function parseLabeledNumbers(output: string, labels: string[]): Record; /** * Parse time string like "31m 10s" or "5h 23m 10s" to seconds. * Also handles plain numeric values (already in seconds). */ export declare function parseTimeString(output: string): number; /** * Parse a numeric value from kOS output (legacy - for backwards compatibility). * Looks for patterns like "23.80 m/s" or just bare numbers. */ export declare function parseNumber(output: string): number; //# sourceMappingURL=kos-parser.d.ts.map