import { type SDKRequestOptions } from '@lifi/perps-sdk'; import { type PortfolioHistoryRange, type PortfolioHistoryResponse } from '@lifi/perps-types'; import type { Address } from 'viem'; import type { HyperliquidContext } from '../context.js'; /** Parameters for {@link getPortfolioHistory}. @public */ export interface GetPortfolioHistoryParams { address: Address; range: PortfolioHistoryRange; } /** * Read the account's portfolio value and cumulative PnL for `params.range` * from one `portfolio` info request. An account whose collateral lives * per-dex reads the perps-only window; a unified or portfolio-margin account * holds its collateral in spot, so it reads the combined window. * @public */ export declare function getPortfolioHistory(ctx: HyperliquidContext, params: GetPortfolioHistoryParams, options?: SDKRequestOptions): Promise; //# sourceMappingURL=getPortfolioHistory.d.ts.map