import { CoerceToUint8ArrayInput } from './coercion.mjs'; /** * Convert a String into a Uint8Array. * * @param input The string to convert. * @returns A new Uint8Array instance. */ declare const stringToBinary: (input: string) => Uint8Array; /** * Convert unicode characters to a 0-1 binary sequence. * * @param input The string to convert. * @returns The 0-1 converted binary sequence. */ declare const unicodeToBinarySequence: (input: CoerceToUint8ArrayInput, separator?: string) => string; /** * Convert a 0-1 binary sequence to Uint8Array. * * @param input The 0-1 binary to convert. * @returns A new Uint8Array instance. */ declare const binarySequenceToUint8Array: (input: CoerceToUint8ArrayInput, separator?: string) => Uint8Array; /** * Convert a String into an Array of bytes. * * @param input The string to convert. * @returns An Array of bytes. */ declare const stringToBytes: (input: string) => number[]; /** * Return the string representation of the given binary data. * * @param input The input data to convert. * @returns The string representation of the given input. */ declare const binaryToString: (input: CoerceToUint8ArrayInput) => string; /** * Return the string representation of the given binary data with Latin1 characters. * * This conversion ensure the output to be Latin1 (ISO-8859-1) — 8-bit characters in the range 0–255. * * @param input The input data to convert. * @returns The string representation of the given input. */ declare const binaryToLatin1String: (input: CoerceToUint8ArrayInput) => string; /** * Writes a 16-bit unsigned integer to a new Buffer in big-endian format. * * @param value The 16-bit unsigned integer to write to the buffer. * @returns A Buffer containing the big-endian representation of the input value. */ declare const writeUint16BE: (value: number) => Buffer; /** * Reads an unsigned 16-bit integer from the given buffer at the specified offset using big-endian byte order. * * @param buffer The buffer to read from. * @param offset (Optional) The offset in the buffer to start reading from. Default: `0`. * * @returns The unsigned 16-bit integer read from the buffer. */ declare const readUint16BE: (buffer: Buffer, offset?: number) => number; /** * Writes a 32-bit unsigned integer to a new Buffer in big-endian format. * * @param value The 32-bit unsigned integer to write to the buffer. * @returns A Buffer containing the big-endian representation of the input value. */ declare const writeUint32BE: (value: number) => Buffer; /** * Reads an unsigned 32-bit integer from the given buffer at the specified offset using big-endian byte order. * * @param buffer The buffer to read from. * @param offset (Optional) The offset in the buffer to start reading from. Default: `0`. * * @returns The unsigned 32-bit integer read from the buffer. */ declare const readUint32BE: (buffer: Buffer, offset?: number) => number; export { binarySequenceToUint8Array, binaryToLatin1String, binaryToString, readUint16BE, readUint32BE, stringToBinary, stringToBytes, unicodeToBinarySequence, writeUint16BE, writeUint32BE };