import type { UsePositionPnlHistoryParams, UsePositionPnlHistoryReturn } from "./types"; /** * Hook for fetching a position's bucketed PnL history. * * Fetches the forward-filled PnL state samples for one owned position at the * requested interval and refetches whenever the position or window changes. * `cumFundingPaid`/`cumFees` are cost-positive on the wire — negate at render * time to display funding as a signed PnL contribution. * * @param params - positionId plus the interval and optional start/end times */ export declare function usePositionPnlHistory(params: UsePositionPnlHistoryParams): UsePositionPnlHistoryReturn;