/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ /** @see {@link MatterSpecification.v161.Core} § 4.19 */ export declare namespace MatterBle { /** Short 16-bit form of the Matter BLE service UUID. */ const SERVICE_UUID_SHORT = "fff6"; /** Full 128-bit (Bluetooth SIG base UUID) form of the Matter BLE service UUID. */ const SERVICE_UUID = "0000fff6-0000-1000-8000-00805f9b34fb"; /** * Returns true if the given UUID matches the Matter BLE service UUID. * Accepts both the short 16-bit form ("fff6") and the full 128-bit form * ("0000fff6-0000-1000-8000-00805f9b34fb") as some BLE adapters and bindings * report the full Bluetooth SIG base UUID instead of the abbreviated form. */ function isServiceUuid(uuid: string): boolean; const C1_CHARACTERISTIC_UUID = "18EE2EF5-263D-4559-959F-4F9C429F9D11"; const C2_CHARACTERISTIC_UUID = "18EE2EF5-263D-4559-959F-4F9C429F9D12"; const C3_CHARACTERISTIC_UUID = "64630238-8772-45F2-B87D-748A83218F04"; const MINIMUM_ATT_MTU = 20; const MAXIMUM_BTP_MTU = 244; const MAXIMUM_ATT_MTU: number; /** §4.19.3.1.4: BTP segment size is the ATT_MTU minus the 3-byte GATT header, clamped to the supported range. */ function btpSegmentSizeFromAttMtu(attMtu: number): number; const BTP_MAXIMUM_WINDOW_SIZE = 255; /** §4.19.4.7: reserve the remote window's last slot for an ack so a full window on both sides can't deadlock. */ const BTP_WINDOW_NO_ACK_SEND_THRESHOLD = 1; /** §4.19.4.8: at this many free local-window slots or fewer, send any pending ack immediately. */ const BTP_IMMEDIATE_ACK_WINDOW_THRESHOLD = 2; /** * The maximum amount of time after sending a BTP Session Handshake request to wait for a BTP Session Handshake * response before closing the connection. */ const BTP_CONN_RSP_TIMEOUT: import("@matter/general").Duration; /** * The maximum amount of time after receipt of a segment before a stand-alone ACK must be sent. Also the duration of * the acknowledgement-received timer (§4.19.4.8). */ const BTP_ACK_TIMEOUT: import("@matter/general").Duration; const BTP_SEND_ACK_TIMEOUT: import("@matter/general").Duration; /** * The maximum amount of time no unique data has been sent over a BTP session before the Central Device must close * the BTP session. */ const BTP_CONN_IDLE_TIMEOUT: import("@matter/general").Duration; /** BTP protocol versions supported, sorted in descending order. */ const BTP_SUPPORTED_VERSIONS: number[]; /** * The maximum message size that can be transported in a Matter message via BTP. * Seems the chip code in BTPEngine limits the size currently to "one pbuf" which should mean one UDP message. */ const MAX_MATTER_PAYLOAD_SIZE: number; } //# sourceMappingURL=BleConsts.d.ts.map