import type { Connection, PublicKey } from "@solana/web3.js"; import type { ClientContext } from "./context"; import type { Exchange, GlobalDepositToken } from "./program/types"; export declare class Rpc { private readonly client; constructor(client: ClientContext); /** * Get the currently-active Connection, or throw if not configured. * * Prefer the typed methods (getExchange, etc.) — they include automatic * failover. Direct use of inner() bypasses the retry/failover wrapper. */ inner(): Connection; getExchangePda(): PublicKey; getGlobalDepositTokenPda(mint: PublicKey): PublicKey; getUserGlobalDepositPda(user: PublicKey, mint: PublicKey): PublicKey; getLatestBlockhash(): Promise<{ blockhash: string; lastValidBlockHeight: number; }>; getExchange(): Promise; getGlobalDepositToken(mint: PublicKey): Promise; } //# sourceMappingURL=rpc.d.ts.map