import type { B256Address, EvmAddress, AssetId, ChecksumAddress, AddressInput } from './types'; /** * `Address` provides a type safe wrapper for converting between different address formats * ands comparing them for equality. */ export declare class Address { readonly b256Address: B256Address; /** * @param address - A B256 address, public key, EVM address, or Address instance */ constructor(address: AddressInput); /** * Takes an B256 Address and returns back an checksum address. * The implementation follows the ERC-55 https://github.com/ethereum/ercs/blob/master/ERCS/erc-55.md. * * @returns A new `ChecksumAddress` instance */ toChecksum(): ChecksumAddress; /** * Returns the `b256Address` property */ toAddress(): B256Address; /** * Returns the B256 hash address as a string * * @returns The B256 address */ toB256(): B256Address; /** * Returns the B256 hash address as a Uint8Array * * @returns The B256 address as a Uint8Array */ toBytes(): Uint8Array; /** * Returns the B256 hash address as a string * * @returns The B256 address */ toHexString(): B256Address; /** * returns the address `checksum` as a string * * @returns The `b256Address` property as a string */ toString(): string; /** * Converts and returns the `b256Address` property as a string * @returns The `b256Address` property as a JSON string */ toJSON(): string; /** * Converts to an EVM address * * @returns an {@link EvmAddress | `EvmAddress`} representation of the address */ toEvmAddress(): EvmAddress; /** * Wraps the B256 property and returns as an `AssetId`. * @returns The B256 property as an {@link AssetId | `AssetId`} */ toAssetId(): AssetId; /** * Wraps the B256 address `checksum` and returns it as a string * @returns The B256 address `checksum` as a string */ valueOf(): string; /** * Compares this the `b256Address` property to another for direct equality * @param other - Another address to compare against * @returns The equality of the comparison */ equals(other: Address): boolean; /** * Takes a Public Key, hashes it, and creates an `Address` * * @param publicKey - A wallets public key * @returns A new `Address` instance * * @deprecated Use `new Address` instead */ static fromPublicKey(publicKey: string): Address; /** * Takes a B256 Address and creates an `Address` * * @param b256Address - A b256 hash * @returns A new `Address` instance * * @deprecated Use `new Address` instead */ static fromB256(b256Address: string): Address; /** * Creates an `Address` with a randomized `b256Address` property * * @returns A new `Address` instance */ static fromRandom(): Address; /** * Takes an ambiguous string and attempts to create an `Address` * * @param address - An ambiguous string * @returns A new `Address` instance * * @deprecated Use `new Address` instead */ static fromString(address: string): Address; /** * Takes an ambiguous string or address and creates an `Address` * * @returns a new `Address` instance * * @deprecated Use `new Address` instead */ static fromAddressOrString(address: string | Address): Address; /** * Takes a dynamic string or `Address` and creates an `Address` * * @param addressId - A string containing B256, or Public Key * @throws Error - Unknown address if the format is not recognized * @returns A new `Address` instance * * @deprecated Use `new Address` instead */ static fromDynamicInput(address: string | Address): Address; /** * Takes an Evm Address and returns back an `Address` * * @returns A new `Address` instance * * @deprecated Use `new Address` instead */ static fromEvmAddress(evmAddress: string): Address; /** * Takes an ChecksumAddress and validates if it is a valid checksum address. * * @returns A `boolean` instance indicating if the address is valid. */ static isChecksumValid(address: ChecksumAddress): boolean; /** @hidden */ private static toChecksum; } //# sourceMappingURL=address.d.ts.map