libp2p
Version:
JavaScript implementation of libp2p, a modular peer to peer network stack
8 lines • 364 B
TypeScript
import type { Address } from '@libp2p/interface';
/**
* Compare function for array.sort() that moves certified addresses to the start
* of the array.
*/
export declare function certifiedAddressesFirst(a: Address, b: Address): -1 | 0 | 1;
export declare function defaultAddressSorter(addresses: Address[]): Address[];
//# sourceMappingURL=address-sorter.d.ts.map