import { CodeError } from '@iotize/common/error'; import { BLEPacketBuilder } from './ble-packet-builder'; export declare class BleComError extends CodeError { static invalidBleChunkChecksum(packetBuilder: BLEPacketBuilder): InvalidBleFrameChecksum; static writeSizeAboveMTU(data: Uint8Array, mtu: number): BleComError; static serviceNotFound(uuid: string): BleComError; static charcacteristicNotFound(uuid: string): BleComError; static bleNotAvailable(msg?: string): BleComError; static gattServerNotAvailable(): BleComError; static gattServerConnectionFailed(): BleComError; constructor(code: BleComError.Code, msg: string); } export declare class InvalidBleFrameChecksum extends BleComError { packetBuilder: BLEPacketBuilder; constructor(packetBuilder: BLEPacketBuilder); static create(packetBuilder: BLEPacketBuilder): InvalidBleFrameChecksum; } export declare namespace BleComError { enum Code { InvalidChecksum = "InvalidChecksum", BleGattServiceNotFound = "BleGattServiceNotFound", BleGattCharacteristicNotFound = "BleGattCharacteristicNotFound", BleWriteSizeAboveMTU = "BleWriteSizeAboveMTU", GATTServerNotAvailable = "BleComErrorGATTServerNotAvailable", GATTServerConnectionFailed = "BleComErrorGATTServerConnectionFailed", NotAvailable = "BleComErrorNotAvailable" } }