import { IChainInfo } from '../common/interfaces/IChainInfo'; import { IWallet } from '../common/interfaces/IWallet'; import { z } from 'zod'; /** * Represents a user of the system connected with a wallet on a particular chain */ export interface IUser extends IUserData { /** The wallet of the user */ readonly wallet: IWallet; /** The chain the user is connected to */ readonly chainInfo: IChainInfo; } /** * Zod schema for the data part of IUser */ export declare const UserDataSchema: z.ZodObject<{ wallet: z.ZodObject<{ address: z.ZodObject<{ value: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>; type: z.ZodNativeEnum; }, "strip", z.ZodTypeAny, { type: import("..").AddressType; value: `0x${string}`; }, { type: import("..").AddressType; value: `0x${string}`; }>; }, "strip", z.ZodTypeAny, { address: { type: import("..").AddressType; value: `0x${string}`; }; }, { address: { type: import("..").AddressType; value: `0x${string}`; }; }>; chainInfo: z.ZodObject<{ chainId: z.ZodNumber; name: z.ZodString; }, "strip", z.ZodTypeAny, { chainId: number; name: string; }, { chainId: number; name: string; }>; }, "strip", z.ZodTypeAny, { chainInfo: { chainId: number; name: string; }; wallet: { address: { type: import("..").AddressType; value: `0x${string}`; }; }; }, { chainInfo: { chainId: number; name: string; }; wallet: { address: { type: import("..").AddressType; value: `0x${string}`; }; }; }>; /** * Type for the data part of the IUser interface */ export type IUserData = Readonly>; /** * Type guard for IUser * @param maybeUser Object to be checked * @returns true if the object is an IUser */ export declare function isUser(maybeUser: unknown): maybeUser is IUser; //# sourceMappingURL=IUser.d.ts.map