1
0
mirror of https://github.com/fluencelabs/libp2p-ts synced 2025-03-17 02:30:49 +00:00
2018-06-22 21:00:40 +02:00

20 lines
492 B
TypeScript

// Type definitions for libp2p-secio 0.10.0
// Project: https://github.com/libp2p/js-libp2p-secio
// Definitions by: Jaco Greeff <https://github.com/jacogr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module 'libp2p-secio' {
// @ts-ignore
import PeerId from 'peer-id';
export type LibP2pSecio = {
tag: '/secio/1.0.0',
encrypt (localId: PeerId, conn: any, remoteId: PeerId, callback: () => any): void
}
const secio: LibP2pSecio;
export default secio;
}