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

The HTTP Status Code characteristic contains the Status-Code from the Status-Line of the first line of the HTTP Response Message, followed by one octet indicating the Data Status Bit Field indicating the status of the data received.

*/ export interface HttpStatusCode { /** * | value | description | * | ----- | --------------------------------------------------------------------------------------------------------------------------------- | * | 0 | The entity-body field was not received in the HTTP response or stored in the HTTP Entity Body characteristic. | * | 1 | The entity-body field was received in the HTTP response and stored in the HTTP Entity Body characteristic for the Client to read. | */ bodyReceived: number; /** * | value | description | * | ----- | -------------------------------------------------------------------------------------------------------------------------- | * | 0 | Any received entity-body field did not exceed 512 octets in length. | * | 1 | The entity-body field exceeded 512 octets in length and the first 512 octets were saved in the HTTP Headers characteristic | */ bodyTruncated: number; /** *

Format: `uint8`

* * Bit field: * * | index | size | name | * | ----- | ---- | ----------------------- | * | 0 | 1 | Headers Received | * | 1 | 1 | Headers Truncated | * | 2 | 1 | Body Received | * | 3 | 1 | Body Truncated | * | 4 | 4 | Reserved for future use | * */ dataStatus: number; /** * | value | description | * | ----- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | * | 0 | The response-header and entity-header fields were not received in the HTTP response or stored in the HTTP Headers characteristic. | * | 1 | The response-header and entity-header fields were received in the HTTP response and stored in the HTTP Headers characteristic for the Client to read. | */ headersReceived: number; /** * | value | description | * | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------- | * | 0 | Any received response-header and entity-header fields did not exceed 512 octets in length. | * | 1 | The response-header and entity-header fields exceeded 512 octets in length and the first 512 octets were saved in the HTTP Headers characteristic. | */ headersTruncated: number; /**

Format: `uint16`

*/ statusCode: number; } /** @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.http_status_code.xml | Http Status Code} */ export declare class HttpStatusCodeImpl implements HttpStatusCode { static readonly UUID_PREFIX = 10936; static readonly TYPE_NAME = "org.bluetooth.characteristic.http_status_code"; static readonly NAME = "HTTP Status Code"; /** Parse from a DataView into {@link HttpStatusCode}. */ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): HttpStatusCodeImpl; readonly bodyReceived: number; readonly bodyTruncated: number; readonly dataStatus: number; readonly headersReceived: number; readonly headersTruncated: number; readonly statusCode: number; constructor(httpStatusCode: HttpStatusCode); } /** Parse from a DataView into {@link HttpStatusCode}. */ export declare function httpStatusCodeFromDataView(dataView: DataView | DataViewReader, indexStart?: number): HttpStatusCode; //# sourceMappingURL=http-status-code.d.ts.map