import { IPoolId } from './IPoolId'; import { PoolType } from '../types/PoolType'; import { z } from 'zod'; /** * @name IPool * @description Represents a generic protocol pool. Contains information about the pool's ID, * which is specific to each protocol, and the pool's type * * It is meant to be specialized for each type of pool */ export interface IPool extends IPoolData { /** 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 IPool */ export declare const PoolDataSchema: 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 IPool interface */ export type IPoolData = Readonly>; /** * @description Type guard for IPool * @param maybePool * @returns true if the object is an IPool */ export declare function isPool(maybePool: unknown): maybePool is IPool; //# sourceMappingURL=IPool.d.ts.map