import type { Connection } from "@libp2p/interface";
import { routes } from "@lodestar/api";
/**
 * Format a list of connections from libp2p connections manager into the API's format NodePeer
 */
export declare function formatNodePeer(peerIdStr: string, connections: Connection[]): routes.node.NodePeer;
/**
 * From a list of connections, get the most relevant of a peer
 * - The first open connection if any
 * - Otherwise, the first closing connection
 * - Otherwise, the first closed connection
 */
export declare function getRelevantConnection(connections: Connection[]): Connection | null;
//# sourceMappingURL=utils.d.ts.map