dht-data/dist/index.d.ts

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