/** * Network functionality for interacting with Akash networks * @module network */ /** Network type identifier */ type NETWORK_TYPE = "mainnet" | "testnet" | "edgenet"; /** Network endpoint type */ type ENDPOINT_TYPE = "rpc" | "rest"; /** * Network metadata interface */ interface INetworkMetadata { chain_name: string; status: string; network_type: string; pretty_name: string; chain_id: string; bech32_prefix: string; daemon_name: string; node_home: string; genesis: { genesis_url: string; }; codebase: { git_repo: string; recommended_version: string; compatible_versions: [string]; binaries: { [target: string]: string; }; }; peers: { seeds: [ { id: string; address: string; } ]; persistent_peers: [ { id: string; address: string; } ]; }; apis: { [type: string]: [{ address: string; }]; }; } /** * Gets metadata for a specific network * @param {NETWORK_TYPE} network - The network to get metadata for * @returns {Promise} The network metadata */ export declare function getMetadata(network: NETWORK_TYPE): Promise; /** * Retrieves endpoints for a specific network and type * @param {NETWORK_TYPE} network - The network to get endpoints for * @param {ENDPOINT_TYPE} type - The type of endpoint to retrieve * @returns {Promise<{ address: string }[]>} A promise that resolves to an array of endpoint addresses */ export declare function getEndpoints(network: NETWORK_TYPE, type: ENDPOINT_TYPE): Promise<[{ address: string; }]>; /** * Retrieves and sorts endpoints by their health status * @param {NETWORK_TYPE} network - The network to get endpoints for * @param {ENDPOINT_TYPE} type - The type of endpoint to retrieve * @returns {Promise<{ address: string, responseTime: number | null }[]>} A promise that resolves to an array of endpoints sorted by response time */ export declare function getEndpointsSorted(network: NETWORK_TYPE, type: ENDPOINT_TYPE): Promise; export {};