import type { PerpsMarketDisplay, Position } from '@lifi/perps-types'; import type { HlAssetPosition } from '../types/index.js'; /** * True when the assetPosition has non-zero size. Hyperliquid keeps zero-size * rows in clearinghouse states after a close; both the REST and WS positions * paths drop them so a close surfaces as absence from the open set. * @public */ export declare const isOpenAssetPosition: (ap: HlAssetPosition) => boolean; /** * Map a non-zero Hyperliquid position payload to the SDK's normalized * position. Signed wire size determines side; decimal strings remain strings * in the normalized response. `cumFunding.sinceOpen` is negated because * Hyperliquid signs funding paid as positive and `accruedFunding` signs it as * negative. * @public */ export declare const mapPosition: (ap: HlAssetPosition, market: PerpsMarketDisplay) => Position; //# sourceMappingURL=mapPosition.d.ts.map