import { Identity } from '../identity'; import { WebSocketAddress } from '../utils'; import { ConnectionRetry } from './connectionRetry'; import { Peer } from './peer'; export type PeerCandidate = { name: string | null; wsAddress: WebSocketAddress | null; neighbors: Set; webRtcRetry: ConnectionRetry; websocketRetry: ConnectionRetry; /** * UTC timestamp. If set, the peer manager should not initiate connections to the * Peer until after the timestamp. */ peerRequestedDisconnectUntil: number | null; /** * UTC timestamp. If set, the peer manager should not accept connections from the * Peer until after the timestamp. */ localRequestedDisconnectUntil: number | null; }; export declare class PeerCandidates { private readonly map; get size(): number; addFromPeer(peer: Peer, neighbors?: Set): void; addFromPeerList(sendingPeerIdentity: Identity, peer: { identity: Identity; name?: string; wsAddress: WebSocketAddress | null; }): void; shufflePeerCandidates(): Identity[]; get(identity: Identity): PeerCandidate | undefined; has(identity: Identity): boolean; clear(): void; } //# sourceMappingURL=peerCandidates.d.ts.map