Type Alias HypercorePeer

HypercorePeer: {
    onbitfield: ((options: {
        bitfield: Buffer;
        start: number;
    }) => void);
    onrange: ((options: {
        drop: boolean;
        length: number;
        start: number;
    }) => void);
    protomux: Protomux;
    remoteBitfield: HypercoreRemoteBitfield;
    remotePublicKey: Buffer;
}

A subset of Hypercore's Peer class that we use. TODO: Contribute these types upstream.