///
///
import EventEmitter from "events";
export default class DHTFlood extends EventEmitter {
private id;
private ttl;
private messageNumber;
private lru;
private swarm;
private protocol;
private topic;
private symbol;
private socketMap;
constructor({ lruSize, ttl, messageNumber, id, swarm, protocol, }?: {
lruSize?: number | undefined;
ttl?: number | undefined;
messageNumber?: number | undefined;
id?: Buffer | undefined;
swarm?: null | undefined;
protocol?: string | undefined;
});
private handleMessage;
private setupPeer;
broadcast(data: any, ttl?: number): void;
send(peer: any, data: any, ttl?: number): void;
}
//# sourceMappingURL=index.d.ts.map