UNPKG

react-native-ble-nitro

Version:

High-performance React Native BLE library built on Nitro Modules - drop-in replacement for react-native-ble-plx

26 lines (25 loc) 716 B
import type { Base64 } from '../specs/types'; /** * Utility functions for Base64 encoding/decoding * Maintains compatibility with react-native-ble-plx Base64 operations */ /** * Converts a string to Base64 */ export declare function stringToBase64(str: string): Base64; /** * Converts Base64 to string */ export declare function base64ToString(base64: Base64): string; /** * Converts Uint8Array to Base64 */ export declare function uint8ArrayToBase64(uint8Array: Uint8Array): Base64; /** * Converts Base64 to Uint8Array */ export declare function base64ToUint8Array(base64: Base64): Uint8Array; /** * Validates if a string is valid Base64 */ export declare function isValidBase64(str: string): boolean;