import { type DataViewReader } from "./data-view-reader.js"; export interface HeartRateMeasurement { /** *

Format: `uint8`

*

Unit: `org.bluetooth.unit.period.beats_per_minute`

*

Note: The format of the Heart Rate Measurement Value field is dependent upon bit 0 of the Flags field.

*/ bpm: number; /** *

Format: `uint16`

*

Unit: `org.bluetooth.unit.energy.joule`

*

The presence of the Energy Expended field is dependent upon bit 3 of the Flags field.

*/ energyJ?: number | undefined; /** *

Format: `8bit`

* * Bit field: * * | index | size | req | name | * | ----- | ---- | ------ | --------------------------- | * | 0 | 1 | C1, C2 | Heart Rate Value Format bit | * | 1 | 2 | | Sensor Contact Status bits | * | 3 | 1 | C3 | Energy Expended Status bit | * | 4 | 1 | C4 | RR-Interval bit | * | 5 | 3 | | Reserved for future use | * */ flags: number; /** *

Resolution of 1/1024 second

*

Format: `uint16`

*

Unit: `org.bluetooth.unit.time.second`

*/ rrInterval?: number[] | undefined; /** * | value | description | * | ----- | ----------------------------------------------------------------- | * | 0 | Sensor Contact feature is not supported in the current connection | * | 1 | Sensor Contact feature is not supported in the current connection | * | 2 | Sensor Contact feature is supported, but contact is not detected | * | 3 | Sensor Contact feature is supported and contact is detected | */ sensorContact: number; } /** * The fields in the above table are in the order of LSO to MSO. Where LSO = Least Significant Octet and MSO = Most Significant Octet. * @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.heart_rate_measurement.xml | Heart Rate Measurement} */ export declare class HeartRateMeasurementImpl implements HeartRateMeasurement { static readonly UUID_PREFIX = 10807; static readonly TYPE_NAME = "org.bluetooth.characteristic.heart_rate_measurement"; static readonly NAME = "Heart Rate Measurement"; /** Parse from a DataView into {@link HeartRateMeasurement}. */ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): HeartRateMeasurementImpl; readonly bpm: number; readonly energyJ?: number | undefined; readonly flags: number; readonly rrInterval?: number[] | undefined; readonly sensorContact: number; constructor(heartRateMeasurement: HeartRateMeasurement); } /** Parse from a DataView into {@link HeartRateMeasurement}. */ export declare function heartRateMeasurementFromDataView(dataView: DataView | DataViewReader, indexStart?: number): HeartRateMeasurement; //# sourceMappingURL=heart-rate-measurement.d.ts.map