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

This characteristic defines the category of the alert and how many new alerts of that category have occurred in the server device. Brief text information may also be included for the last alert in the category.

*

The value 0x01, 0x04, 0x52, 0x69, 0x63, 0x68, 0x61, 0x72, 0x64 are interpreted that the server has 4 new email messages and the last message was sent by ?Richard?.

*

This characteristic consists of ?Category ID?, ?uint8?, and ?UTF-8 string? fields. The size of this characteristic is dynamic because of the variable length text (?UTF-8?) field. The minimum length of ?UTF-8 string? is 0 octets and maximum length of ?UTF-8 string? is 18 octets.

*/ export interface NewAlert { /**

This field shows the category of the new alert.

*/ categoryID: AlertCategoryId; /** *

Format: `uint8`

*

This field provides the number of new alerts in the server.

*

Minimum: 0

*

Maximum: 255

*/ numberOfNewAlert: number; /** *

Format: `utf8s`

*

The field provides brief text information for the last alert.

*/ textStringInformation?: string | undefined; } /** * The usage of this text is up to the implementation, but the recommended text for the category is defined as following for best user experience: Category: Simple Alert - The title of the alert Category: Email - Sender name Category: News - Title of the news feed Category: Call - Caller name or caller ID Category: Missed call - Caller name or caller ID Category: SMS - Sender name or caller ID Category: Voice mail - Sender name or caller ID Category: Schedule - Title of the schedule Category Hig:h Prioritized Aler - Title of the alert Category: Instant Messaging - Sender name * @see {@link https://raw.githubusercontent.com/oesmith/gatt-xml/refs/heads/master/org.bluetooth.characteristic.new_alert.xml | New Alert} */ export declare class NewAlertImpl implements NewAlert { static readonly UUID_PREFIX = 10822; static readonly TYPE_NAME = "org.bluetooth.characteristic.new_alert"; static readonly NAME = "New Alert"; /** Parse from a DataView into {@link NewAlert}. */ static fromDataView(dataView: DataView | DataViewReader, indexStart?: number | undefined): NewAlertImpl; readonly categoryID: AlertCategoryId; readonly numberOfNewAlert: number; readonly textStringInformation?: string | undefined; constructor(newAlert: NewAlert); } /** Parse from a DataView into {@link NewAlert}. */ export declare function newAlertFromDataView(dataView: DataView | DataViewReader, indexStart?: number): NewAlert; //# sourceMappingURL=new-alert.d.ts.map