import { type SDKRequestOptions } from '@lifi/perps-sdk'; import type { ActivitiesResponse } from '@lifi/perps-types'; import { ActivityType } from '@lifi/perps-types'; import type { Address } from 'viem'; import type { HyperliquidContext } from '../context.js'; /** * Parameters for {@link getActivity}. * * @public */ export interface GetActivityParams { address: Address; /** Maximum items returned; defaults to 50 and is capped at 200. */ limit?: number; /** Millisecond timestamp cursor; rows strictly older than it are returned. */ cursor?: string; /** Inclusive lower bound in milliseconds since epoch. */ startTime?: number; /** Inclusive upper bound in milliseconds since epoch. */ endTime?: number; /** Optional normalized activity-type filter applied after mapping. */ type?: ActivityType[]; } /** * Fetch a chronological activity feed (deposits, withdrawals, transfers, * liquidations, funding) for `address`. Combines results from Hyperliquid's * `userNonFundingLedgerUpdates`, `userFunding`, and `userFills` endpoints, * sorted newest-first. * * Cursor-based pagination uses the ms-since-epoch timestamp of the last item * on the current page. * @throws {PerpsError} On Hyperliquid REST error, network, or parsing failures. * @public */ export declare const getActivity: ({ client, apiUrl }: HyperliquidContext, params: GetActivityParams, options?: SDKRequestOptions) => Promise; //# sourceMappingURL=getActivity.d.ts.map