/** * @name slipEncode * Take an array buffer and return back a new array where * 0xdb is replaced with 0xdb 0xdd and 0xc0 is replaced with 0xdb 0xdc */ export declare const slipEncode: (buffer: number[]) => number[]; /** * @name toByteArray * Convert a string to a byte array */ export declare const toByteArray: (str: string) => number[]; export declare const hexFormatter: (bytes: number[]) => string; export declare const toHex: (value: number, size?: number) => string; /** * Format MAC address array to string (e.g., [0xAA, 0xBB, 0xCC] -> "AA:BB:CC:DD:EE:FF") */ export declare const formatMacAddr: (macAddr: number[]) => string; /** * @name padTo * Pad data to the next alignment boundary with the given fill byte (default 0xFF) */ export declare function padTo(data: Uint8Array, alignment: number, padCharacter?: number): Uint8Array; export declare const sleep: (ms: number) => Promise;