import { IPoolId } from './IPoolId'; import { PoolType } from '../types/PoolType'; import { z } from 'zod'; /** * @name IPool * @description Represents the extended information of a pool. It should contain extra info that is common for any type of pool * * It is meant to be specialized for each type of pool, like a lending pool, a staking pool, etc... */ export interface IPoolInfo extends IPoolInfoData { /** Type of the pool */ readonly type: PoolType; /** Unique identifier for the pool, to be specialized for each protocol */ readonly id: IPoolId; } /** * @description Zod schema for IPoolInfo */ export declare const PoolInfoDataSchema: z.ZodObject<{ type: z.ZodNativeEnum; id: z.ZodObject<{ protocol: z.ZodObject<{ name: z.ZodNativeEnum; chainInfo: z.ZodObject<{ chainId: z.ZodNumber; name: z.ZodString; }, "strip", z.ZodTypeAny, { chainId: number; name: string; }, { chainId: number; name: string; }>; }, "strip", z.ZodTypeAny, { name: import("..").ProtocolName; chainInfo: { chainId: number; name: string; }; }, { name: import("..").ProtocolName; chainInfo: { chainId: number; name: string; }; }>; }, "strip", z.ZodTypeAny, { protocol: { name: import("..").ProtocolName; chainInfo: { chainId: number; name: string; }; }; }, { protocol: { name: import("..").ProtocolName; chainInfo: { chainId: number; name: string; }; }; }>; }, "strip", z.ZodTypeAny, { type: PoolType; id: { protocol: { name: import("..").ProtocolName; chainInfo: { chainId: number; name: string; }; }; }; }, { type: PoolType; id: { protocol: { name: import("..").ProtocolName; chainInfo: { chainId: number; name: string; }; }; }; }>; /** * Type for the data part of the IPoolInfo interface */ export type IPoolInfoData = Readonly>; /** * @description Type guard for IPoolInfo * @param maybePoolInfo * @returns true if the object is an IPoolInfo */ export declare function isPoolInfo(maybePoolInfo: unknown): maybePoolInfo is IPoolInfo; //# sourceMappingURL=IPoolInfo.d.ts.map