import { formatUnits } from "viem"; import type { GetCompoundPositionsArgs } from "./schemas.js"; import type { SupportedChain, TokenAmount } from "../../types/index.js"; /** * A Compound V3 Comet position for a single market. * `baseSupplied` and `baseBorrowed` are mutually exclusive at the Comet level — an * account either has a positive base balance or a nonzero borrow balance, never both. */ export interface CompoundPosition { protocol: "compound-v3"; chain: SupportedChain; market: string; marketAddress: `0x${string}`; baseSupplied: TokenAmount | null; baseBorrowed: TokenAmount | null; collateral: TokenAmount[]; totalCollateralUsd: number; totalDebtUsd: number; totalSuppliedUsd: number; netValueUsd: number; } export declare function getCompoundPositions(args: GetCompoundPositionsArgs): Promise<{ wallet: `0x${string}`; positions: CompoundPosition[]; }>; export { formatUnits };