import { NetworkNode } from './types'; /** * Check health of an RPC node * * @param endpoint - WebSocket endpoint URL (wss:// or ws://) * @param timeout - Timeout in milliseconds (default: 5000) * @returns NetworkNode with health status * * @example * ```ts * const node = await checkRpcHealth('wss://gdev.cgeek.fr') * if (node.status === 'healthy') { * console.log(`Latency: ${node.latency}ms, Block: ${node.currentBlock}`) * } * ``` */ export declare function checkRpcHealth(endpoint: string, timeout?: number): Promise; /** * Check health of a Squid/GraphQL indexer node * * Supports both Hasura and Relay/Graphile schema styles. * * @param endpoint - GraphQL endpoint URL (https://) * @param timeout - Timeout in milliseconds (default: 5000) * @returns NetworkNode with health status * * @example * ```ts * const node = await checkSquidHealth('https://gt-squid.axiom-team.fr/v1/graphql') * if (node.status === 'healthy') { * console.log(`Latency: ${node.latency}ms, Block: ${node.currentBlock}`) * } * ``` */ export declare function checkSquidHealth(endpoint: string, timeout?: number): Promise; /** * Check health of a datapod node * * @param endpoint - GraphQL endpoint URL (https://) * @param timeout - Timeout in milliseconds (default: 5000) * @returns NetworkNode with health status */ export declare function checkDatapodHealth(endpoint: string, timeout?: number): Promise;