ipfs-bitswap
Version:
JavaScript implementation of the Bitswap data exchange protocol used by IPFS
15 lines • 485 B
TypeScript
import type { Message } from '../message/message';
import type { CID } from 'multiformats/cid';
export declare class WantListEntry {
private _refCounter;
cid: CID;
priority: number;
wantType: Message.Wantlist.WantType;
constructor(cid: CID, priority: number, wantType: Message.Wantlist.WantType);
inc(): void;
dec(): void;
hasRefs(): boolean;
get [Symbol.toStringTag](): string;
equals(other: any): boolean;
}
//# sourceMappingURL=entry.d.ts.map