// Type definitions for libp2p-mdns 0.12.0 // Project: https://github.com/libp2p/js-libp2p-mdns // Definitions by: Jaco Greeff // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // @ts-ignore import PeerInfo from 'peer-info'; declare module 'libp2p-mdns' { type Options = { broadcast?: boolean, interval?: number, peerInfo: PeerInfo, port?: number, serviceTag?: string }; type Events = 'peer'; export class LibP2pMdns { constructor (options: Options); on (event: Events, cb: (peerInfo: PeerInfo) => any): void; } const Mdns: typeof LibP2pMdns; export default Mdns; }