dht-data/dist/index.d.ts

15 lines
463 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?: {};
[key: string]: any;
});
handlePeerAdd(peer: any): void;
handlePeerRemove(peer: any): void;
broadcast(message: any, ttl?: number): void;
}
//# sourceMappingURL=index.d.ts.map