/** * @fileoverview Provides functions for conversion between Uint8Arrays and bitstream strings. * @author Jacob V. B. Haap * @license MIT */ /** * Convert from a Uint8Array to a bitstream string. * @example * const bytes: Uint8Array = Uint8Array.from([9, 8, 7, 6]); * const bits = toBitstream(bytes); // 00001001000010000000011100000110 */ export declare function toBitstream(bytes: Uint8Array): string; /** * Convert from a bitstream string to a Uint8Array. * @example * const bits: string = "00001001000010000000011100000110"; * const bytes = fromBitstream(bits); // Uint8Array(4) [ 9, 8, 7, 6 ] */ export declare function fromBitstream(bits: string): Uint8Array; //# sourceMappingURL=bitstream.d.ts.map