import type { PolymarketActivity, PolymarketPosition } from "../types"; import { type SearchParamValue } from "./http"; export declare const POLYMARKET_DATA_API_PATHS: { readonly positions: "/positions"; readonly activity: "/activity"; }; export type PolymarketActivityType = "TRADE" | "SPLIT" | "MERGE" | "REDEEM" | "REWARD" | "CONVERSION" | "DEPOSIT" | "WITHDRAWAL" | "YIELD" | "MAKER_REBATE" | "TAKER_REBATE" | "REFERRAL_REWARD"; export type PolymarketActivitySortBy = "TIMESTAMP" | "TOKENS" | "CASH"; export type PolymarketActivitySortDirection = "ASC" | "DESC"; export type PolymarketActivitySide = "BUY" | "SELL"; export type GetPolymarketPositionsParams = Record & { user: string; market?: string | string[]; eventId?: number | number[]; sizeThreshold?: number; redeemable?: boolean; mergeable?: boolean; }; export type GetPolymarketActivityParams = Record & { user: string; market?: string | string[]; eventId?: number | number[]; type?: PolymarketActivityType | PolymarketActivityType[]; limit?: number; offset?: number; start?: number; end?: number; sortBy?: PolymarketActivitySortBy; sortDirection?: PolymarketActivitySortDirection; side?: PolymarketActivitySide; }; export declare function getPolymarketPositions(params: GetPolymarketPositionsParams): Promise; export declare function getPolymarketActivity(params: GetPolymarketActivityParams): Promise;