UNPKG

librelinkup-api-client

Version:

An unofficial API for Libre Link Up (glucose monitoring system/CGM)

52 lines (51 loc) 1.46 kB
import { MeasurementColor, RawGlucoseReading, Trend, TrendType } from "./types"; /** * @description A glucose reading class. */ export declare class GlucoseReading { _raw: RawGlucoseReading; _options: { targetHigh: number; targetLow: number; }; /** * @description The timestamp of the glucose reading. */ timestamp: Date; /** * @description The value of the glucose reading in mg/dL. */ value: number; /** * @description The measurement color of the glucose reading. See {@link MeasurementColor}. */ measurementColor: MeasurementColor; /** * @description Whether the glucose reading is high, based on the patient's settings. Calculated by the library. */ isHigh: boolean; /** * @description Whether the glucose reading is low, based on the patient's settings. Calculated by the library. */ isLow: boolean; /** * @description The trend of the glucose reading. See {@link Trend}. */ trend: Trend; constructor(_raw: RawGlucoseReading, _options?: { targetHigh: number; targetLow: number; }); /** * @description The mmol value of the glucose reading. */ get mmol(): string; /** * @description The mg/dL value of the glucose reading. */ get mgDl(): number; /** * @description The type of the trend. { @see TrendType } */ get trendType(): TrendType; }