import { z } from "zod/v4"; //#region src/model/positions.schema.d.ts /** * Runtime schemas for {@link ./positions.js}, see the note in * `primitives.schema.ts` on why they are written by hand. **/ /** * {@link PositionKind} **/ export declare const positionKindSchema: z.ZodUnion, z.ZodLiteral<"strategy">, z.ZodLiteral<"liquidation">]>; /** * {@link TokenRewardsPnL} **/ export declare const tokenRewardsPnLSchema: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; kind: z.ZodLiteral<"token">; }, z.core.$strip>; /** * {@link PointsProgramPnL} **/ export declare const pointsProgramPnLSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; multiplier: z.ZodNullable; value: z.ZodNumber; }, z.core.$strip>; /** * {@link PointsRewardsPnL} **/ export declare const pointsRewardsPnLSchema: z.ZodObject<{ kind: z.ZodLiteral<"point">; points: z.ZodArray; value: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; /** * {@link RewardsPnL} **/ export declare const rewardsPnLSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; kind: z.ZodLiteral<"token">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"point">; points: z.ZodArray; value: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>], "kind">; /** * {@link PnlBreakdown} **/ export declare const pnlBreakdownSchema: z.ZodObject<{ organic: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; total: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; rewards: z.ZodArray, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; kind: z.ZodLiteral<"token">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"point">; points: z.ZodArray; value: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>], "kind">>; }, z.core.$strip>; /** * {@link PositionCollateral} **/ export declare const positionCollateralSchema: z.ZodObject<{ collateral: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; quota: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; withdrawals: z.ZodArray, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; isDelayed: z.ZodLiteral; redeemer: z.ZodOptional>>; claimableAt: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; /** * {@link PoolPosition} **/ export declare const poolPositionSchema: z.ZodObject<{ kind: z.ZodLiteral<"pool">; name: z.ZodString; curator: z.ZodObject<{ address: z.ZodCodec>; name: z.ZodOptional>; url: z.ZodNullable; }, z.core.$strip>; chainId: z.ZodNumber; pool: z.ZodCodec>; underlyingToken: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; wrappedAddress: z.ZodNullable>>; }, z.core.$strip>; netValue: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; apy: z.ZodObject<{ totalApy: z.ZodOptional; organicApy: z.ZodNumber; rewards: z.ZodOptional; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; supplyApr: z.ZodOptional; borrowApr: z.ZodOptional; links: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"point">; points: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>], "kind">>>; }, z.core.$strip>; apyAvg7D: z.ZodOptional; organicApy: z.ZodNumber; rewards: z.ZodOptional; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; supplyApr: z.ZodOptional; borrowApr: z.ZodOptional; links: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"point">; points: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>], "kind">>>; }, z.core.$strip>>; pnl: z.ZodOptional, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; total: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; rewards: z.ZodArray, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; kind: z.ZodLiteral<"token">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"point">; points: z.ZodArray; value: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>], "kind">>; }, z.core.$strip>>; }, z.core.$strip>; /** * {@link TokenQuotaRate} **/ export declare const tokenQuotaRateSchema: z.ZodObject<{ token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; rate: z.ZodNumber; }, z.core.$strip>; /** * {@link BorrowRateBreakdown} **/ export declare const borrowRateBreakdownSchema: z.ZodObject<{ total: z.ZodNumber; totalOnDebt: z.ZodNumber; base: z.ZodNumber; quotas: z.ZodArray>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; rate: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>; /** * {@link StrategyPosition} **/ export declare const strategyPositionSchema: z.ZodObject<{ kind: z.ZodLiteral<"strategy">; name: z.ZodString; curator: z.ZodObject<{ address: z.ZodCodec>; name: z.ZodOptional>; url: z.ZodNullable; }, z.core.$strip>; chainId: z.ZodNumber; creditManager: z.ZodCodec>; creditAccount: z.ZodCodec>; underlyingToken: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; wrappedAddress: z.ZodNullable>>; }, z.core.$strip>; targetCollateral: z.ZodNullable>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>>; leverage: z.ZodNumber; borrowApy: z.ZodNumber; borrowApyAvg7D: z.ZodOptional; netApy: z.ZodOptional; organicApy: z.ZodNumber; rewards: z.ZodOptional; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; supplyApr: z.ZodOptional; borrowApr: z.ZodOptional; links: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"point">; points: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>], "kind">>>; }, z.core.$strip>>; netApyAvg7D: z.ZodOptional; organicApy: z.ZodNumber; rewards: z.ZodOptional; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; supplyApr: z.ZodOptional; borrowApr: z.ZodOptional; links: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"point">; points: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>], "kind">>>; }, z.core.$strip>>; totalDebt: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; totalValue: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; healthFactor: z.ZodNumber; borrowRate: z.ZodOptional>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; rate: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; borrowRateAvg7D: z.ZodOptional>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; rate: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; timeToLiquidation: z.ZodOptional, z.ZodBigInt>>>; liquidationPrice: z.ZodOptional, z.ZodBigInt>>>; pnl: z.ZodOptional, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; total: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; rewards: z.ZodArray, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; kind: z.ZodLiteral<"token">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"point">; points: z.ZodArray; value: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>], "kind">>; }, z.core.$strip>>; collaterals: z.ZodArray, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; quota: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; withdrawals: z.ZodArray, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; isDelayed: z.ZodLiteral; redeemer: z.ZodOptional>>; claimableAt: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; error: z.ZodOptional; }, z.core.$strip>; /** * {@link Position} **/ export declare const positionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"pool">; name: z.ZodString; curator: z.ZodObject<{ address: z.ZodCodec>; name: z.ZodOptional>; url: z.ZodNullable; }, z.core.$strip>; chainId: z.ZodNumber; pool: z.ZodCodec>; underlyingToken: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; wrappedAddress: z.ZodNullable>>; }, z.core.$strip>; netValue: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; apy: z.ZodObject<{ totalApy: z.ZodOptional; organicApy: z.ZodNumber; rewards: z.ZodOptional; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; supplyApr: z.ZodOptional; borrowApr: z.ZodOptional; links: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"point">; points: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>], "kind">>>; }, z.core.$strip>; apyAvg7D: z.ZodOptional; organicApy: z.ZodNumber; rewards: z.ZodOptional; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; supplyApr: z.ZodOptional; borrowApr: z.ZodOptional; links: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"point">; points: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>], "kind">>>; }, z.core.$strip>>; pnl: z.ZodOptional, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; total: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; rewards: z.ZodArray, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; kind: z.ZodLiteral<"token">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"point">; points: z.ZodArray; value: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>], "kind">>; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"strategy">; name: z.ZodString; curator: z.ZodObject<{ address: z.ZodCodec>; name: z.ZodOptional>; url: z.ZodNullable; }, z.core.$strip>; chainId: z.ZodNumber; creditManager: z.ZodCodec>; creditAccount: z.ZodCodec>; underlyingToken: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; wrappedAddress: z.ZodNullable>>; }, z.core.$strip>; targetCollateral: z.ZodNullable>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>>; leverage: z.ZodNumber; borrowApy: z.ZodNumber; borrowApyAvg7D: z.ZodOptional; netApy: z.ZodOptional; organicApy: z.ZodNumber; rewards: z.ZodOptional; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; supplyApr: z.ZodOptional; borrowApr: z.ZodOptional; links: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"point">; points: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>], "kind">>>; }, z.core.$strip>>; netApyAvg7D: z.ZodOptional; organicApy: z.ZodNumber; rewards: z.ZodOptional; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; supplyApr: z.ZodOptional; borrowApr: z.ZodOptional; links: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"point">; points: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>], "kind">>>; }, z.core.$strip>>; totalDebt: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; totalValue: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; healthFactor: z.ZodNumber; borrowRate: z.ZodOptional>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; rate: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; borrowRateAvg7D: z.ZodOptional>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; rate: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>>; timeToLiquidation: z.ZodOptional, z.ZodBigInt>>>; liquidationPrice: z.ZodOptional, z.ZodBigInt>>>; pnl: z.ZodOptional, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; total: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; rewards: z.ZodArray, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; kind: z.ZodLiteral<"token">; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"point">; points: z.ZodArray; value: z.ZodNumber; }, z.core.$strip>>; }, z.core.$strip>], "kind">>; }, z.core.$strip>>; collaterals: z.ZodArray, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; quota: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; withdrawals: z.ZodArray, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; isDelayed: z.ZodLiteral; redeemer: z.ZodOptional>>; claimableAt: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; error: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"liquidation">; name: z.ZodString; chainId: z.ZodNumber; sourceToken: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; output: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; claimableAt: z.ZodOptional; claimTx: z.ZodOptional>; callData: z.ZodCodec>; value: z.ZodOptional, z.ZodBigInt>>; }, z.core.$strip>>; redeemer: z.ZodOptional>>; }, z.core.$strip>], "kind">; /** * {@link PositionFilter} **/ export declare const positionFilterSchema: z.ZodObject<{ kind: z.ZodOptional, z.ZodLiteral<"strategy">, z.ZodLiteral<"liquidation">]>, z.ZodLiteral<"all">]>>; isZeroDebt: z.ZodOptional]>>; chainIds: z.ZodOptional>; underlyingType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>, z.ZodLiteral<"all">]>>; }, z.core.$strip>; /** * {@link PositionFilter} as a URL can carry it: every condition is a string, * and a condition that does not narrow is absent rather than empty. **/ export declare const positionFilterQueryParamsSchema: z.ZodObject<{ kind: z.ZodOptional, z.ZodLiteral<"strategy">, z.ZodLiteral<"liquidation">]>>; isZeroDebt: z.ZodOptional>; chainIds: z.ZodOptional; underlyingType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; /** * Code for {@link PositionFilter} to encode/decode to/from url query parameters. **/ export declare const positionFilterQuerySchema: z.ZodCodec, z.ZodLiteral<"strategy">, z.ZodLiteral<"liquidation">]>>; isZeroDebt: z.ZodOptional>; chainIds: z.ZodOptional; underlyingType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodOptional, z.ZodLiteral<"strategy">, z.ZodLiteral<"liquidation">]>, z.ZodLiteral<"all">]>>; isZeroDebt: z.ZodOptional]>>; chainIds: z.ZodOptional>; underlyingType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>, z.ZodLiteral<"all">]>>; }, z.core.$strip>>; /** * {@link PoolPositionKey} **/ export declare const poolPositionKeySchema: z.ZodObject<{ chainId: z.ZodNumber; pool: z.ZodCodec>; wallet: z.ZodCodec>; }, z.core.$strip>; /** * {@link StrategyPositionKey} **/ export declare const strategyPositionKeySchema: z.ZodObject<{ chainId: z.ZodNumber; creditAccount: z.ZodCodec>; }, z.core.$strip>; /** * {@link PositionKey} **/ export declare const positionKeySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ chainId: z.ZodNumber; pool: z.ZodCodec>; wallet: z.ZodCodec>; kind: z.ZodLiteral<"pool">; }, z.core.$strip>, z.ZodObject<{ chainId: z.ZodNumber; creditAccount: z.ZodCodec>; kind: z.ZodLiteral<"strategy">; }, z.core.$strip>], "kind">; /** * {@link PositionsTotals} **/ export declare const positionsTotalsSchema: z.ZodObject<{ currentYield: z.ZodNullable; organicApy: z.ZodNumber; rewards: z.ZodOptional; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; supplyApr: z.ZodOptional; borrowApr: z.ZodOptional; links: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"point">; points: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>], "kind">>>; }, z.core.$strip>>; pnlUsd: z.ZodNullable; netValueUsd: z.ZodNullable; claimableUsd: z.ZodNullable; }, z.core.$strip>; /** * {@link PositionTransactionKind} **/ export declare const positionTransactionKindSchema: z.ZodUnion, z.ZodLiteral<"deposit">, z.ZodLiteral<"withdraw">, z.ZodLiteral<"adjustLeverage">, z.ZodLiteral<"addCollateral">, z.ZodLiteral<"withdrawCollateral">, z.ZodLiteral<"liquidation">, z.ZodLiteral<"repay">, z.ZodLiteral<"rebalance">, z.ZodLiteral<"other">]>; /** * {@link PositionTransaction} **/ export declare const positionTransactionSchema: z.ZodObject<{ txHash: z.ZodCodec>; timestamp: z.ZodNumber; kind: z.ZodUnion, z.ZodLiteral<"deposit">, z.ZodLiteral<"withdraw">, z.ZodLiteral<"adjustLeverage">, z.ZodLiteral<"addCollateral">, z.ZodLiteral<"withdrawCollateral">, z.ZodLiteral<"liquidation">, z.ZodLiteral<"repay">, z.ZodLiteral<"rebalance">, z.ZodLiteral<"other">]>; assets: z.ZodArray, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>>; balanceChanges: z.ZodArray, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>>; debtChange: z.ZodObject<{ value: z.ZodCodec, z.ZodBigInt>; valueUsd: z.ZodNullable; token: z.ZodObject<{ chainId: z.ZodNumber; address: z.ZodCodec>; symbol: z.ZodString; name: z.ZodString; decimals: z.ZodNumber; assetType: z.ZodOptional, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>>; }, z.core.$strip>; }, z.core.$strip>; }, z.core.$strip>; //#endregion