import type { Chain, OpenSeaAccount, OpenSeaPaymentToken } from "../types"; import type { Fetcher } from "./fetcher"; import type { AgentProfileRelationshipsResponse, ClosedPositionsResponse, GetAccountTokensArgs, GetAccountTokensResponse, PortfolioArgs, PortfolioHistoryResponse, PortfolioStatsResponse, PositionTokenTransfersResponse, ProfileCollectionsArgs, ProfileCollectionsResponse, ProfileFavoritesArgs, ProfileFavoritesResponse, ProfileListingsResponse, ProfileOffersResponse, ProfileOrdersArgs, ResolveAccountResponse, WalletClosedPositionsArgs, WalletPnlResponse, WalletTokenTransfersArgs } from "./types"; /** * Account and payment token related API operations */ export declare class AccountsAPI { private fetcher; private chain; constructor(fetcher: Fetcher, chain: Chain); /** * Fetch a payment token. */ getPaymentToken(address: string, chain?: Chain): Promise; /** * Fetch account for an address. */ getAccount(address: string): Promise; /** * Get the public agent ownership relationships for a profile. This is a public * read and does not require wallet authentication. */ getAgentProfileRelationships(addressOrUsername: string): Promise; /** * Fetch token balances for an account. */ getAccountTokens(address: string, args?: GetAccountTokensArgs): Promise; /** * Resolve an ENS name, OpenSea username, or wallet address to canonical account info. */ resolveAccount(identifier: string): Promise; /** * Get portfolio stats (net worth, P&L) for an account. */ getPortfolioStats(address: string, args?: PortfolioArgs): Promise; /** * Get portfolio net-worth history for an account. */ getPortfolioHistory(address: string, args?: PortfolioArgs): Promise; /** * Get offers received by an account, scoped by collection/chain. */ getProfileOffersReceived(address: string, args?: ProfileOrdersArgs): Promise; /** * Get active offers made by an account. */ getProfileOffers(address: string, args?: ProfileOrdersArgs): Promise; /** * Get active listings for an account. */ getProfileListings(address: string, args?: ProfileOrdersArgs): Promise; /** * Get items favorited by an account. */ getProfileFavorites(address: string, args?: ProfileFavoritesArgs): Promise; /** * Get aggregated trading P&L (realized + unrealized) for an account. */ getWalletPnl(address: string): Promise; /** * Get closed (realized) trading positions for an account. */ getWalletClosedPositions(address: string, args?: WalletClosedPositionsArgs): Promise; /** * Get the token transfers contributing to a wallet's position in a currency. */ getWalletTokenTransfers(address: string, args: WalletTokenTransfersArgs): Promise; /** * Get collections owned by an account. */ getProfileCollections(address: string, args?: ProfileCollectionsArgs): Promise; }