import * as _hazae41_gardien from '@hazae41/gardien'; import { ZeroHexString, RawHexString } from '@hazae41/hexane'; import { Nullable } from '../../libs/nullable/index.js'; import { RawHexAsInteger } from '../convert/index.js'; declare const AddressSymbol: unique symbol; /** * A "0x"-prefixed and checksummed valid hex string of length 42 */ type Address = ZeroHexString<20> & { readonly [AddressSymbol]: true; }; declare namespace Address { function is(value: string): value is Address; function asOrThrow(value: string): Address; function asOrThrow(value: ZeroHexString): Address; type From = RawHexAsInteger.From; function fromOrThrow(from: From): Address; function fromOrNull(from: From): Nullable
; function fromRawHexOrThrow(from: RawHexString<20>): Address; type Formatted = `0x${string}...${string}`; /** * Format address as "0xFFFF...FFFF" for UI display * @param address * @returns */ function format(address: Address): Formatted; } declare function $address(message?: string): _hazae41_gardien.Errorer