import { NativeModule } from "react-native"; export declare const BluetoothLE: NativeBluetoothLE; export type Device = Readonly<{ systemId: string; address: number; name: string; }>; export type ManufacturerData = Readonly<{ companyId: number; data: readonly number[]; }>; export type ServiceData = Readonly<{ service: string; data: readonly number[]; }>; export type AdvertisementData = Readonly<{ localName?: string; isConnectable: boolean; rssi: number; txPowerLevel: number; timestamp: number; services?: readonly string[]; solicitedServices?: readonly string[]; manufacturersData?: readonly ManufacturerData[]; servicesData?: readonly ServiceData[]; }>; export type Characteristic = Readonly<{ serviceUuid: string; uuid: string; instanceIndex: number; }>; export type ConnectionStatus = "connecting" | "connected" | "failedToConnect" | "ready" | "disconnecting" | "disconnected"; export type ConnectionEventReason = "unknown" | "success" | "canceled" | "notSupported" | "timeout" | "linkLoss" | "bluetoothOff" | "host" | "peripheral"; export type BluetoothState = "unknown" | "off" | "resetting" | "unauthorized" | "ready"; export interface NativeBluetoothLE extends NativeModule { bleInitialize(): Promise; bleShutdown(): Promise; startScan(requiredServicesUuids?: string): Promise; stopScan(): Promise; createPeripheral(deviceSystemId: string): Promise; releasePeripheral(deviceSystemId: string): Promise; connectPeripheral(deviceSystemId: string, requiredServicesUuids: string | undefined, timeoutMs: number): Promise; disconnectPeripheral(deviceSystemId: string): Promise; getPeripheralConnectionStatus(deviceSystemId: string): Promise; getPeripheralName(deviceSystemId: string): Promise; getPeripheralAddress(deviceSystemId: string): Promise; getPeripheralMtu(deviceSystemId: string): Promise; requestPeripheralMtu(deviceSystemId: string, mtu: number): Promise; readPeripheralRssi(deviceSystemId: string): Promise; getDiscoveredServices(deviceSystemId: string): Promise; getServiceCharacteristics(deviceSystemId: string, serviceUuid: string): Promise; getCharacteristicProperties(deviceSystemId: string, serviceUuid: string, characteristicUuid: string, instanceIndex: number): Promise; readCharacteristic(deviceSystemId: string, serviceUuid: string, characteristicUuid: string, instanceIndex: number): Promise; writeCharacteristic(deviceSystemId: string, serviceUuid: string, characteristicUuid: string, instanceIndex: number, data: number[], withoutResponse: boolean): Promise; subscribeCharacteristic(deviceSystemId: string, serviceUuid: string, characteristicUuid: string, instanceIndex: number): Promise; unsubscribeCharacteristic(deviceSystemId: string, serviceUuid: string, characteristicUuid: string, instanceIndex: number): Promise; } //# sourceMappingURL=BluetoothLE.d.ts.map