/**
 * Pure byte-manipulation utilities for the domain layer.
 *
 * These functions replace Node.js Buffer methods with portable
 * Uint8Array-based equivalents that work identically on Node,
 * Bun, Deno, and browsers.
 *
 * @module domain/utils/bytes
 */
/**
 * Encodes a Uint8Array to a lowercase hex string.
 */
export declare function hexEncode(bytes: Uint8Array): string;
/**
 * Decodes a hex string to a Uint8Array.
 */
export declare function hexDecode(hex: string): Uint8Array;
/**
 * Encodes a Uint8Array to a base64 string.
 *
 * Uses a direct table-based implementation that avoids intermediate binary
 * strings, preventing memory spikes on large buffers.
 */
export declare function base64Encode(bytes: Uint8Array): string;
/**
 * Decodes a base64 string to a Uint8Array.
 *
 * Uses a direct table-based implementation that avoids intermediate binary
 * strings, preventing memory spikes on large buffers.
 */
export declare function base64Decode(b64: string): Uint8Array;
/**
 * Concatenates multiple Uint8Arrays into a single Uint8Array.
 */
export declare function concatBytes(...arrays: Uint8Array[]): Uint8Array;
/**
 * Encodes a string to UTF-8 bytes.
 */
export declare function textEncode(str: string): Uint8Array;
/**
 * Decodes UTF-8 bytes to a string.
 */
export declare function textDecode(bytes: Uint8Array): string;
