dht-cache/dist/index.d.ts

15 lines
455 B
TypeScript

/// <reference types="node" />
import DHTOnlineBase from "./dhtOnlineBase.js";
export default class DHTOnline extends DHTOnlineBase {
private flood;
private swarm;
constructor(swarm: any, { id, data, ...opts }?: {
id?: Buffer;
data?: {};
opts?: any;
});
handlePeerAdd(peer: any): void;
handlePeerRemove(peer: any): void;
broadcast(message: any, ttl?: number): void;
}
//# sourceMappingURL=index.d.ts.map