import { IChainInfo } from '../../common/interfaces/IChainInfo'; import { ProtocolName } from '../enums/ProtocolName'; import { z } from 'zod'; /** * @interface IProtocol * @description Information relative to a protocol * * This interface is used to add all the methods that the interface supports */ export interface IProtocol extends IProtocolData { /** The name of the protocol */ readonly name: ProtocolName; /** The chain information */ readonly chainInfo: IChainInfo; /** * Compare if the passed protocol is equal to the current protocol * @param protocol The protocol to compare * @returns true if the protocols are equal * * Equality is determined by the name and chain information */ equals(protocol: IProtocol): boolean; } /** * @description Zod schema for IProtocol */ export declare const ProtocolDataSchema: 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: ProtocolName; chainInfo: { chainId: number; name: string; }; }, { name: ProtocolName; chainInfo: { chainId: number; name: string; }; }>; /** * Type for the data part of the IProtocol interface */ export type IProtocolData = Readonly>; /** * @description Type guard for IProtocol * @param maybeProtocol * @returns true if the object is an IProtocol */ export declare function isProtocol(maybeProtocol: unknown): maybeProtocol is IProtocol; //# sourceMappingURL=IProtocol.d.ts.map