import { SuiClient } from "@mysten/sui/client"; import type { NetworkName } from "./types.js"; /** * Default RPC endpoint URLs for SuiMultiClient. * Manually tested for the last time on September 2024. */ export declare const RPC_ENDPOINTS: Record; /** * A result returned by `measureRpcLatency`. */ export type RpcLatencyResult = { endpoint: string; latency?: number; error?: string; }; /** * Measure Sui RPC latency by making requests to various endpoints. */ export declare function measureRpcLatency({ endpoints, rpcRequest, }: { endpoints: string[]; rpcRequest?: ((client: SuiClient) => Promise) | undefined; }): Promise; /** * Instantiate SuiClient using the RPC endpoint with the lowest latency. */ export declare function newLowLatencySuiClient({ endpoints, rpcRequest, }: { endpoints: string[]; rpcRequest?: (client: SuiClient) => Promise; }): Promise;