import { AddressValue } from '../aliases/AddressValue'; import { AddressType } from '../enums/AddressType'; import { z } from 'zod'; /** * @name IAddress * @description Represents an address with a certain format, specified by the type * * Currently only Ethereum type is supported */ export interface IAddress extends IAddressData { /** The address value in the format specified by type */ readonly value: AddressValue; /** The type of the address */ readonly type: AddressType; /** * @name equals * @description Checks if two addresses are equal * @param address The address to compare * @returns true if the addresses are equal * * Equality is determined by the address value and type */ equals(address: IAddress): boolean; } /** * @description Zod schema for IAddress */ export declare const AddressDataSchema: z.ZodObject<{ value: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>; type: z.ZodNativeEnum; }, "strip", z.ZodTypeAny, { type: AddressType; value: `0x${string}`; }, { type: AddressType; value: `0x${string}`; }>; /** * Type for the data part of the IAddress interface */ export type IAddressData = Readonly>; /** * @description Type guard for IAddress * @param maybeAddress * @returns true if the object is an IAddress */ export declare function isAddress(maybeAddress: unknown): maybeAddress is IAddress; //# sourceMappingURL=IAddress.d.ts.map