@xylabs/hex
Version:
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
19 lines • 1.03 kB
TypeScript
/**
* Creates a RegExp matching lowercase hex strings with a byte length in the given range.
* @param minBytes - Minimum number of bytes (default 0)
* @param maxBytes - Maximum number of bytes
* @returns A RegExp for validating hex strings within the byte range
*/
export declare const HexRegExMinMax: (minBytes?: number, maxBytes?: number) => RegExp;
/**
* Creates a RegExp matching mixed-case hex strings with a 0x prefix and a byte length in the given range.
* @param minBytes - Minimum number of bytes (default 0)
* @param maxBytes - Maximum number of bytes
* @returns A RegExp for validating prefixed hex strings within the byte range
*/
export declare const HexRegExMinMaxMixedCaseWithPrefix: (minBytes?: number, maxBytes?: number) => RegExp;
/** Regular expression matching a lowercase hex string without prefix. */
export declare const HexRegEx: RegExp;
/** Regular expression matching a lowercase hex string with a 0x prefix. */
export declare const HexRegExWithPrefix: RegExp;
//# sourceMappingURL=HexRegEx.d.ts.map