import { GetMarketsParams, Market, GetMarketByIdParams, GetUserInvestmentsParams, UserInvestment, MarketDetails, MarketLiquidity, MarketVolume, OptionPrice, ProtocolStats } from './markets/types.js'; import { AddLiquidityTxParams, ApproveTxParams, CancelOrdersTxParams, CancelAllOpenOrdersTxParams, ClaimTxParams, CloseMarketTxParams, ChooseWinnerTxParams, ResolveMarketTxParams, CreateMarketTxParams, CreateDisputeTxParams, CreateAppealTxParams, DepositToSmartAccountTxParams, EnterLimitOptionTxParams, EnterOptionTxParams, ExtendTimeTxParams, RawTransaction, SellOptionTxParams, WithdrawFromSmartAccountTxParams } from './tx/types.js'; import { RainCoreConfig, RainEnvironment } from './types.js'; import { AccountBalanceResult } from './accounts/types.js'; import { LPPosition, PositionByMarket, PositionsResult, PortfolioValue } from './positions/types.js'; import { GetTransactionsParams, GetTransactionDetailsParams, GetMarketTransactionsParams, GetTradeHistoryParams, TransactionsResult, TransactionDetails, MarketTransactionsResult, TradeHistoryResult } from './transactions/types.js'; import { SubscribeMarketEventsParams, SubscribePriceUpdatesParams, Unsubscribe } from './websocket/types.js'; import { GetPriceHistoryParams, PriceHistoryResult } from './priceHistory/types.js'; import { GetPnLParams, PnLResult } from './pnl/types.js'; import { GetLeaderboardParams, LeaderboardResult } from './leaderboard/types.js'; import { LoginParams, LoginResult } from './auth/types.js'; export declare class Rain { readonly environment: RainEnvironment; private readonly marketFactory; private readonly apiUrl; private readonly distute_initial_timer; private readonly rpcUrl?; private readonly subgraphUrl?; private readonly subgraphApiKey?; private readonly wsRpcUrl?; private readonly wsReconnect?; private wsClient; private readonly usdtSymbol; constructor(config?: RainCoreConfig); getPublicMarkets(params: GetMarketsParams): Promise; getMarketById(params: GetMarketByIdParams): Promise; getUserInvestments(params: GetUserInvestmentsParams): Promise; buildApprovalTx(params: ApproveTxParams): RawTransaction | Error; buildBuyOptionRawTx(params: EnterOptionTxParams): RawTransaction; buildLimitBuyOptionTx(params: EnterLimitOptionTxParams): RawTransaction; buildSellOptionTx(params: SellOptionTxParams): RawTransaction; buildCancelBuyOrdersTx(params: CancelOrdersTxParams): RawTransaction; buildCancelSellOrdersTx(params: CancelOrdersTxParams): RawTransaction; buildCancelAllOpenOrdersTx(params: CancelAllOpenOrdersTxParams): Promise; buildAddLiquidityTx(params: AddLiquidityTxParams): RawTransaction; buildCreateMarketTx(params: CreateMarketTxParams): Promise; buildClaimTx(params: ClaimTxParams): Promise; buildCloseMarketTx(params: CloseMarketTxParams): Promise; buildChooseWinnerTx(params: ChooseWinnerTxParams): Promise; buildResolveMarketTx(params: ResolveMarketTxParams): Promise; buildCreateDisputeTx(params: CreateDisputeTxParams): Promise; buildCreateAppealTx(params: CreateAppealTxParams): Promise; buildExtendTimeTx(params: ExtendTimeTxParams): Promise; buildDepositToSmartAccountTx(params: DepositToSmartAccountTxParams): RawTransaction; buildWithdrawFromSmartAccountTx(params: WithdrawFromSmartAccountTxParams): RawTransaction; getMarketAddress(marketId: string): Promise<`0x${string}`>; getMarketId(marketAddress: `0x${string}`): Promise; getMarketDetails(marketId: string): Promise; getMarketPrices(marketId: string): Promise; getMarketVolume(marketId: string): Promise; getMarketLiquidity(marketId: string): Promise; getProtocolStats(): Promise; getSmartAccountBalance(params: { address: `0x${string}`; tokenAddresses: `0x${string}`[]; }): Promise; getEOAFromSmartAccount(smartAccountAddress: `0x${string}`): Promise<`0x${string}`>; getPositions(address: `0x${string}`): Promise; getPositionByMarket(address: `0x${string}`, marketId: string): Promise; getLPPosition(address: `0x${string}`, marketId: string): Promise; getPortfolioValue(params: { address: `0x${string}`; tokenAddresses: `0x${string}`[]; }): Promise; getTransactions(params: Omit & { subgraphUrl?: string; subgraphApiKey?: string; }): Promise; getTransactionDetails(params: Omit & { subgraphUrl?: string; subgraphApiKey?: string; rpcUrl?: string; }): Promise; getMarketTransactions(params: Omit & { subgraphUrl?: string; subgraphApiKey?: string; }): Promise; getPriceHistory(params: Omit & { subgraphUrl?: string; subgraphApiKey?: string; apiUrl?: string; }): Promise; getTradeHistory(params: Omit & { subgraphUrl?: string; subgraphApiKey?: string; }): Promise; getPnL(params: Omit & { subgraphUrl?: string; subgraphApiKey?: string; apiUrl?: string; rpcUrl?: string; }): Promise; getLeaderboard(params: Omit & { subgraphUrl?: string; subgraphApiKey?: string; }): Promise; private getWsClient; subscribeToMarketEvents(params: SubscribeMarketEventsParams): Unsubscribe; subscribePriceUpdates(params: SubscribePriceUpdatesParams): Unsubscribe; destroyWebSocket(): Promise; login(params: LoginParams): Promise; }