import { type DataViewReader } from "./data-view-reader.js"; import { type DateTime } from "./date-time.js"; export interface WeightMeasurement { /** *

Format: `uint16`

*

Unit: `org.bluetooth.unit.unitless`

*

Unit is unitless with a resolution of 0.1

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

Format: `8bit`

* * Bit field: * * | index | size | req | name | * | ----- | ---- | ------ | ----------------------- | * | 0 | 1 | C1, C2 | Measurement Units | * | 1 | 1 | C3 | Time stamp present | * | 2 | 1 | C4 | User ID present | * | 3 | 1 | C5 | BMI and Height present | * | 4 | 4 | | Reserved for future use | * */ flags: number; /** *

Format: `uint16`

*

Unit: `org.bluetooth.unit.length.inch`

*

Unit is in inches with a resolution of 0.1, and determined when bit 0 of the Flags field is set to 1

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

Format: `uint16`

*

Unit: `org.bluetooth.unit.length.meter`

*

Unit is in meters with a resolution of 0.001, and determined when bit 0 of the Flags field is set to 0.

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

Smallest unit in seconds

*/ timeStamp?: DateTime | undefined; /** *

Format: `uint8`

*

Unit: `org.bluetooth.unit.unitless`

*

Unit is unitless with a resolution of 1

* | Key | Description | * | --- | ------------ | * | 255 | unknown user | * */ userID?: number | undefined; /** *

Format: `uint16`

*

Unit: `org.bluetooth.unit.mass.pound`

*

Unit is in pounds with a resolution of 0.01, and determined when bit 0 of the Flags field is set to 1.

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

Format: `uint16`

*

Unit: `org.bluetooth.unit.mass.kilogram`

*

Unit is in kilograms with a resolution of 0.005, and determined when bit 0 of the Flags field is set to 0.

*/ weightSI?: number | undefined; } /** * 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.weight_measurement.xml | Weight Measurement} */ export declare class WeightMeasurementImpl implements WeightMeasurement { static readonly UUID_PREFIX = 10909; static readonly TYPE_NAME = "org.bluetooth.characteristic.weight_measurement"; static readonly NAME = "Weight Measurement"; /** Parse from a DataView into {@link WeightMeasurement}. */ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): WeightMeasurementImpl; readonly bmi?: number | undefined; readonly flags: number; readonly heightImperial?: number | undefined; readonly heightSI?: number | undefined; readonly timeStamp?: DateTime | undefined; readonly userID?: number | undefined; readonly weightImperial?: number | undefined; readonly weightSI?: number | undefined; constructor(weightMeasurement: WeightMeasurement); } /** Parse from a DataView into {@link WeightMeasurement}. */ export declare function weightMeasurementFromDataView(dataView: DataView | DataViewReader, indexStart?: number): WeightMeasurement; //# sourceMappingURL=weight-measurement.d.ts.map