/** * Binary data conversion helpers. * * @module */ /** * Converts string or binary data to a `Uint8Array`. * Strings are UTF-8 encoded. `Uint8Array` inputs are returned as-is. * * @returns `Uint8Array` view of the data */ export declare const to_bytes: (data: Uint8Array | BufferSource | string) => Uint8Array; /** * Formats a byte count as a human-readable string. * * @returns formatted string like `'1.2 KB'` or `'3.4 MB'` */ export declare const format_bytes: (n: number) => string; //# sourceMappingURL=bytes.d.ts.map