UNPKG

@xylabs/hex

Version:

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

12 lines 540 B
import type { HexConfig } from '../hex/index.ts'; import type { Address } from './address.ts'; /** * Type guard that checks whether a value is a valid 160-bit address. * @param value - The value to check * @param config - Optional hex config (defaults to 160-bit, no prefix) * @returns True if the value is a valid Address */ export declare const isAddress: (value?: unknown, config?: HexConfig) => value is Address; /** @alpha */ export declare function isAddressV2(value?: unknown): value is Address; //# sourceMappingURL=is.d.ts.map