/// /** * An Address, as an immutable object. */ export declare class Address { private readonly publicKey; private readonly hrp; /** * Creates an address object, given a raw string (whether a hex pubkey or a Bech32 address), a sequence of bytes, or another Address object. */ constructor(value: Address | Uint8Array | string, hrp?: string); /** * Named constructor * Creates an address object from a bech32-encoded string */ static newFromBech32(value: string): Address; /** * Named constructor * Creates an address object from a hex-encoded string */ static newFromHex(value: string, hrp?: string): Address; /** * Returns the hex representation of the address (pubkey) */ toHex(): string; /** * Returns the bech32 representation of the address */ toBech32(): string; /** * Returns the underlying public key. */ getPublicKey(): Buffer; /** * Returns the human-readable-part of the bech32 addresses. */ getHrp(): string; /** * Creates an empty address object. * Generally speaking, this should not be used by client code (internal use only). */ static empty(): Address; /** * Performs address validation without throwing errors */ static isValid(value: string): boolean; private static isValidHex; /** * Returns whether the address is empty. */ isEmpty(): boolean; /** * Compares the address to another address */ equals(other: Address | null): boolean; /** * Returns the bech32 representation of the address */ toString(): string; /** * Converts the address to a pretty, plain JavaScript object. */ toJSON(): object; /** * Creates the Zero address (the one that should be used when deploying smart contracts). * Generally speaking, this should not be used by client code (internal use only). */ static Zero(): Address; /** * Returns whether the address is a smart contract address. */ isSmartContract(): boolean; } export declare class AddressComputer { private readonly numberOfShardsWithoutMeta; constructor(numberOfShardsWithoutMeta?: number); computeContractAddress(deployer: Address, deploymentNonce: bigint): Address; getShardOfAddress(address: Address): number; private getShardOfPubkey; private isPubkeyOfMetachain; }