@xylabs/hex
Version:
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
12 lines • 598 B
TypeScript
import type { HexConfig } from '../hex/index.ts';
import type { Address } from './address.ts';
/**
* Converts a value to a 160-bit Address hex string.
* @param value - The value to convert (string, number, bigint, or ArrayBuffer)
* @param config - Optional hex config (defaults to 160-bit, no prefix)
* @returns The value as an Address
*/
export declare const toAddress: (value: string | number | bigint | ArrayBufferLike, config?: HexConfig) => Address;
/** @alpha */
export declare function toAddressV2(value: unknown, assert?: boolean): Address | undefined;
//# sourceMappingURL=to.d.ts.map