UNPKG

@drift-labs/common

Version:

Common functions for Drift

8 lines (7 loc) 357 B
import { RpcEndpoint } from 'src/EnvironmentConstants'; export declare const getResponseTimes: (rpcOptions: RpcEndpoint[]) => Promise<{ value: string; latency: number; }[]>; export declare const getRpcWithLowestPing: (rpcEndpoints: RpcEndpoint[]) => Promise<RpcEndpoint>; export declare const getResponseTime: (endpoint: string) => Promise<number>;