import { Peripheral, StartOptions } from 'react-native-ble-manager'; export type { Peripheral, StartOptions } from 'react-native-ble-manager'; export default class BluetoothManager { private _connectedPrinter; private _pairedPrinters; private _characteristic; private _service; /** * Call once, starts BleManager * * @param options Starting options for the Bluetooth printer */ start(options?: StartOptions): Promise; /** * Returns all paired devices * * TODO: Currently cannot differentiate between printers and regular bluetooth devices * @returns List of devices */ getPairedDevices(): Promise; /** * Connects to paired device * * @param peripheralId Peripheral's MAC address */ connect(peripheralId: string): Promise; /** * Disonnect connected device * * @param peripheralId Peripheral's MAC address */ disconnect(peripheralId: string): Promise; /** * Check connection to printer * * @returns If the previously connected printer is still connected */ isConnected(): Promise; sendEscPosCommands(commands: Uint8Array): Promise; }