import type { PeerId } from '@libp2p/interface';
/**
 * Calls the passed map function on every entry of the passed iterable iterator
 */
export declare function mapIterable<T, R>(iter: IterableIterator<T>, map: (val: T) => R): IterableIterator<R>;
export declare function peerIdFromString(str: string): PeerId;
//# sourceMappingURL=util.d.ts.map