import type { Asset, Balance, Market } from '@lifi/perps-types'; import type { HlSpotBalance } from '../types/index.js'; /** * Build USD prices keyed by spot token asset ID. Base tokens use the supplied * market mark price; quote tokens default to exactly `$1`; missing base prices * default to `0`. * @public */ export declare const spotPriceById: (markets: readonly Market[], priceByMarketId: ReadonlyMap) => Map; /** * Convert a Hyperliquid spot balance's numeric token index into an SDK asset. * The balance payload has no `fullName`, so logo resolution uses the base * `_spot` URI rule rather than Unit-underlying lookup. * @public */ export declare const spotAssetFromToken: (b: HlSpotBalance) => Asset; /** Assemble a typed spot {@link Balance}; `total` is native token units and its unit price and USD value use `priceById`. @public */ export declare const spotBalance: (asset: Asset, total: string, priceById: Map) => Balance; //# sourceMappingURL=spotBalance.d.ts.map