react-native-bluetooth-obd-manager
Version:
A React Native hook library to manage Bluetooth Low Energy connections and communication with ELM327 OBD-II adapters.
15 lines • 669 B
TypeScript
import React from 'react';
import type { BluetoothState, BluetoothDispatch } from '../types';
export declare const BluetoothStateContext: React.Context<BluetoothState>;
export declare const BluetoothDispatchContext: React.Context<BluetoothDispatch>;
/**
* Hook to safely access the Bluetooth state context.
* Throws an error if used outside of a BluetoothProvider.
*/
export declare function useBluetoothState(): BluetoothState;
/**
* Hook to safely access the Bluetooth dispatch context.
* Throws an error if used outside of a BluetoothProvider.
*/
export declare function useBluetoothDispatch(): BluetoothDispatch;
//# sourceMappingURL=BluetoothContext.d.ts.map