import type { GauntletApi, TokenRef, UserActivity } from './client'; /** The wallet's reconstructed position state immediately after one activity row. */ export interface PositionHistoryPoint { timestamp: Date; txHash: string; type: UserActivity['type']; /** Signed share movement of this row, 18-decimal base units. */ sharesDelta: bigint; /** Signed asset movement of this row (deposit-ledger convention), human decimal string. */ assetsDelta: string; /** Shares held by the wallet after this row (escrowed redeem shares excluded). */ sharesBalance: bigint; /** Assets escrowed at the Provisioner awaiting share mint, human decimal string. */ pendingDepositAssets: string; /** Shares escrowed at the Provisioner awaiting asset return, 18-decimal base units. */ pendingRedeemShares: bigint; /** Cumulative settled deposits minus settled withdrawals, human decimal string. */ netAssetsIn: string; } export interface PositionHistory { /** CAIP-10 vault id the history belongs to. */ vaultId: string; /** The vault's asset token, when the indexer reports it on any row. */ token: TokenRef | null; /** Chronological (oldest-first) position states, one per activity row. */ points: PositionHistoryPoint[]; } /** * Pure builder: replays a single vault's activity rows (any order) into a * chronological position timeline — running share balance, escrowed pending * amounts, and cumulative net asset flows. * * Async lifecycles are paired via `request_hash` so settled deposits count * the requested asset amount and terminal rows release the matching escrow. */ export declare function buildPositionHistory(rows: UserActivity[]): PositionHistory; /** * Fetches a wallet's complete activity for one vault and replays it into a * position timeline. `vaultId` is the CAIP-10 id; use `apiVaultIdFromVaultId` * to convert a manifest vault id. A wallet that has never touched the vault * gets an empty timeline, not an error. */ export declare function getPositionHistory(api: GauntletApi, walletAddress: string, vaultId: string): Promise; //# sourceMappingURL=positionHistory.d.ts.map