import type { Connection, PeerId } from "@libp2p/interface";
import type { PeerIdStr } from "../util/peerId.js";
import type { Libp2p } from "./interface.js";
export declare function prettyPrintPeerId(peerId: PeerId): string;
export declare function prettyPrintPeerIdStr(id: PeerIdStr): string;
/**
 * Get the connections map from a connection manager
 */
export declare function getConnectionsMap(libp2p: Libp2p): Map<string, {
    key: PeerId;
    value: Connection[];
}>;
export declare function getConnection(libp2p: Libp2p, peerIdStr: string): Connection | undefined;
export declare function isPublishToZeroPeersError(e: Error): boolean;
//# sourceMappingURL=util.d.ts.map