import { type ProviderGetAccountParams, type SDKRequestOptions } from '@lifi/perps-sdk'; import type { AccountResponse } from '@lifi/perps-types'; import type { HyperliquidContext } from '../context.js'; /** * Parameters for {@link getAccount}. * * @public */ export type GetAccountParams = ProviderGetAccountParams; /** * Fetch the Hyperliquid account snapshot for `address`: balances per * sub-dex (and spot), aggregate margin used, unrealised PnL, fee tier, and * the typed `HyperliquidAccountConfig`. * * Issues `userFees`, `userAbstraction`, `extraAgents`, * `spotClearinghouseState` and one `clearinghouseState` per perps sub-dex that * still has a live market, all concurrently. USDC parked manually on a * sub-dex whose every market is delisted is therefore not reported. * * `config.builderFeeApproval` is intentionally omitted — that field * compares the venue's `maxBuilderFee` against the integrator-specific * builder address LI.FI publishes, which is not data the venue itself * owns. Surfacing it belongs at a higher layer (the LI.FI backend or a * thin client-side helper that has the integrator's builder config). * @throws {PerpsError} On Hyperliquid REST error, network, or parsing failures. * @public */ export declare const getAccount: ({ client, apiUrl }: HyperliquidContext, params: GetAccountParams, options?: SDKRequestOptions) => Promise; //# sourceMappingURL=getAccount.d.ts.map