14 lines
436 B
TypeScript
14 lines
436 B
TypeScript
/// <reference types="node" />
|
|
import DHTDataBase from "./DHTDataBase.js";
|
|
export default class DHTData extends DHTDataBase {
|
|
private flood;
|
|
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
|