import { Address, Hex } from "viem"; import { State } from "../client"; import { Market, MorphoTx, Position, PositionPoints } from "../types"; export declare const getPositionId: (market: Hex, user: Address) => string; export declare const initPosition: (market: Hex, user: Address) => Position; export declare const initPositionPoints: (market: Hex, user: Address) => PositionPoints; export declare const computeMarketPoints: (_market: Market, timestamp: bigint) => { totalSupplyShares: bigint; totalBorrowShares: bigint; totalCollateral: bigint; lastUpdate: bigint; id: `0x${string}`; totalSupplyPoints: bigint; totalBorrowPoints: bigint; totalCollateralPoints: bigint; }; export declare const computePositionPoints: (_position: Position, timestamp: bigint) => { supplyShares: bigint; borrowShares: bigint; collateral: bigint; lastUpdate: bigint; user: `0x${string}`; market: `0x${string}`; supplyPoints: bigint; borrowPoints: bigint; collateralPoints: bigint; id: string; }; export declare const handleMorphoTx: (state: State, { market, user, timestamp, shares, type }: MorphoTx) => { markets: { [x: string]: Market; }; positions: { [x: string]: Position; }; metaMorphos: { [x: string]: import("../types").MetaMorpho; }; metaMorphoPositions: { [x: string]: import("../types").MetaMorphoPosition; }; };