import { EventEmitter } from 'eventemitter3'; import { KBucket as _KBucket } from '../ext/index.ts'; import type { PeerInfo } from '../types.ts'; export declare class KBucket { events: EventEmitter; protected _peers: Map; protected _kbucket: _KBucket; constructor(localNodeId: Uint8Array); static getKeys(obj: Uint8Array | string | PeerInfo): string[]; add(peer: PeerInfo): _KBucket | void; get(obj: Uint8Array | string | PeerInfo): PeerInfo | null; getAll(): Array; closest(id: Uint8Array): PeerInfo[]; remove(obj: Uint8Array | string | PeerInfo): void; } //# sourceMappingURL=kbucket.d.ts.map