ipfs-bitswap
Version:
JavaScript implementation of the Bitswap data exchange protocol used by IPFS
18 lines • 710 B
TypeScript
import { WantListEntry } from '../wantlist/entry.js';
import type { Message } from './message.js';
import type { CID } from 'multiformats/cid';
export declare class BitswapMessageEntry {
entry: WantListEntry;
cancel: boolean;
sendDontHave: boolean;
constructor(cid: CID, priority: number, wantType: Message.Wantlist.WantType, cancel?: boolean, sendDontHave?: boolean);
get cid(): CID;
set cid(cid: CID);
get priority(): number;
set priority(val: number);
get wantType(): Message.Wantlist.WantType;
set wantType(val: Message.Wantlist.WantType);
get [Symbol.toStringTag](): string;
equals(other: BitswapMessageEntry): boolean;
}
//# sourceMappingURL=entry.d.ts.map