UNPKG

@xylabs/hex

Version:

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

9 lines 484 B
import type { Hex, HexConfig } from '../hex.ts'; /** * Normalizes a hex string by stripping an optional 0x prefix, lowercasing, and padding to byte/bit boundaries. * @param value - The hex string to normalize (with or without 0x prefix) * @param config - Configuration for prefix, byteSize, and bitLength padding * @returns The normalized Hex string */ export declare const hexFromHexString: (value: string, config?: HexConfig) => Hex; //# sourceMappingURL=fromHexString.d.ts.map