/** * @license * Copyright 2022-2024 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { BleChannel, BtpSessionHandler } from "@project-chip/matter.js/ble"; import { Channel, Listener, ServerAddress } from "@project-chip/matter.js/common"; import { NetInterface } from "@project-chip/matter.js/net"; import { ByteArray } from "@project-chip/matter.js/util"; import { Characteristic, Device } from "react-native-ble-plx"; export declare class ReactNativeBleCentralInterface implements NetInterface { private openChannels; private onMatterMessageListener; openChannel(address: ServerAddress): Promise>; onData(listener: (socket: Channel, data: ByteArray) => void): Listener; close(): Promise; } export declare class ReactNativeBleChannel extends BleChannel { private readonly peripheral; private readonly btpSession; static create(peripheral: Device, characteristicC1ForWrite: Characteristic, characteristicC2ForSubscribe: Characteristic, onMatterMessageListener: (socket: Channel, data: ByteArray) => void, _additionalCommissioningRelatedData?: ByteArray): Promise; private connected; private disconnectSubscription; constructor(peripheral: Device, btpSession: BtpSessionHandler); /** * Send a Matter message to the connected device - need to do BTP assembly first. * * @param data */ send(data: ByteArray): Promise; get name(): string; close(): Promise; } //# sourceMappingURL=ReactNativeBleChannel.d.ts.map