import { Bitswap } from './bitswap'; import { Swarm } from './swarm'; import { Dht } from './dht'; import { PubSub } from './pubsub'; declare module '../core' { interface Peer { /** * Access to the libp2p host's bitswap agent. */ bitswap: Bitswap; /** * Access to the libp2p host's peer swarm. */ swarm: Swarm; /** * Access to the libp2p host's distributed hash table module. */ dht: Dht; /** * Access to the libp2p host's pubsub module. */ pubsub: PubSub; } }