interface-ipfs-core
Version:
A test suite and interface you can use to implement a IPFS core interface.
14 lines • 503 B
TypeScript
/**
* @typedef {import('@libp2p/interface-peer-id').PeerId} PeerId
*/
/**
* @param {import('ipfs-core-types').IPFS} ipfs
* @param {string} topic
* @param {PeerId[]} peersToWait
* @param {number} waitForMs
* @returns
*/
export function waitForPeers(ipfs: import('ipfs-core-types').IPFS, topic: string, peersToWait: PeerId[], waitForMs: number): Promise<void>;
export function getTopic(): string;
export type PeerId = import('@libp2p/interface-peer-id').PeerId;
//# sourceMappingURL=utils.d.ts.map