import { d as XService, c as XConnector, X as XAccount } from '../../XConnector-12q0OVe5.js'; import { XToken } from '@sodax/types'; import { NearConnector, NearWalletBase } from '@hot-labs/near-connect'; declare class NearXService extends XService { private static instance; walletSelector: NearConnector; rpcUrl: string; /** * @param rpcUrl - Used by `getBalance` via `JsonRpcProvider({ url: rpcUrl })`. * Does NOT affect `walletSelector` — `@hot-labs/near-connect` only accepts * the network preset name (`'mainnet'`/`'testnet'`) and fetches RPC internally. * Custom RPC is therefore read-only for balance queries. */ private constructor(); /** * @param rpcUrl - Re-applied on every call (matches StacksXService semantics). * `rpcUrl` only drives `getBalance` via a per-call `JsonRpcProvider`, so it's * safe to update at runtime — no persistent chain client to rebuild. */ static getInstance(rpcUrl?: string): NearXService; getBalance(address: string | undefined, xToken: XToken): Promise; } declare class NearXConnector extends XConnector { _wallet: NearWalletBase; constructor(wallet: NearWalletBase); getXService(): NearXService; connect(): Promise; disconnect(): Promise; get icon(): string; } export { NearXConnector, NearXService };