import type { HLUserAccount, HLUserOrder, HLUserOrderHistory } from "./hl.types"; import { ExchangeName, OrderSide, PositionSide, type Account, type Balance, type Fill, type Market, type Order, type PlaceOrderOpts, type Ticker, type UpdateOrderOpts } from "../../types/lib.types"; export declare const mapHLUserAccount: ({ accountId, data: { assetPositions, crossMarginSummary }, }: { accountId: Account["id"]; data: HLUserAccount; }) => { balance: Balance; positions: { accountId: string; exchange: ExchangeName; symbol: string; side: PositionSide; entryPrice: number; notional: number; leverage: number; upnl: number; rpnl: number; contracts: number; liquidationPrice: number; isHedged: boolean; }[]; }; export declare const mapHLOrder: ({ order: o, accountId, }: { order: HLUserOrder; accountId: string; }) => Order; export declare const mapHLFill: (order: HLUserOrderHistory) => Fill; export declare const formatHLOrderPrice: ({ order, tickers, markets, }: { order: { symbol: string; side: OrderSide; price?: number; }; tickers: Record; markets: Record; }) => number; export declare const formatHLOrder: ({ order, tickers, markets, }: { order: PlaceOrderOpts; tickers: Record; markets: Record; }) => { a: number; b: boolean; p: string; s: string; r: boolean; t: { trigger: { isMarket: boolean; triggerPx: string; tpsl: string; }; limit?: undefined; }; } | { a: number; b: boolean; p: string; s: string; r: boolean; t: { limit: { tif: string; }; trigger?: undefined; }; }; export declare const formatHLOrderUpdate: ({ update: { order, update }, tickers, markets, }: { update: UpdateOrderOpts; tickers: Record; markets: Record; }) => { oid: number; order: { a: number; b: boolean; p: string; s: string; r: boolean; t: { trigger: { isMarket: boolean; triggerPx: string; tpsl: string; }; limit?: undefined; }; }; } | { oid: number; order: { a: number; b: boolean; p: string; s: string; r: boolean; t: { limit: { tif: string; }; trigger?: undefined; }; }; };