import { type AssetRegistry } from '@lifi/perps-sdk'; import type { ActivityItem, FundingActivity, LiquidationActivity, MarketDisplay } from '@lifi/perps-types'; import type { HlFundingUpdate, HlLedgerUpdate, HlUserFill } from '../types/index.js'; /** * Map supported ledger entries; exclude same-account moves and unsupported types. * Missing assets throw; unresolved liquidation markets omit only those positions. * @public */ export declare const mapLedgerEntry: (entry: HlLedgerUpdate, providerKey: string, queriedAddress: string, assetRegistry: AssetRegistry, resolveMarket: (coin: string) => MarketDisplay | undefined) => ActivityItem | null; /** * Map a Hyperliquid funding ledger update to a normalized funding activity, or * `null` when `resolveMarket` cannot identify the row's coin. `amount`, * `positionSize`, and `fundingRate` retain the upstream decimal strings; * `resolveMarket` supplies the provider-agnostic market metadata. * * `userFunding` entries all carry the zero hash, so a deterministic * `funding::` id is synthesized — funding accrues at most * once per coin per hourly settlement, so the pair is unique per account. * @public */ export declare const mapFundingActivity: (entry: HlFundingUpdate, providerKey: string, resolveMarket: (coin: string) => MarketDisplay | undefined) => FundingActivity | null; /** * Build one liquidation activity per liquidation order from the fills of the * liquidated account. Hyperliquid attaches `liquidation` to the fills of both * parties, so only fills whose `liquidatedUser` is the queried address count. * A fill whose hash a ledger liquidation row already carries is the same * event and is skipped. The size sign follows the closed position: a sell * fill closes a long. Groups whose market does not resolve are dropped. * @public */ export declare const mapLiquidationFills: (fills: HlUserFill[], providerKey: string, queriedAddress: string, resolveMarket: (coin: string) => MarketDisplay | undefined, ledgerHashes: ReadonlySet) => LiquidationActivity[]; //# sourceMappingURL=mapActivity.d.ts.map