UNPKG

@libp2p/record

Version:
13 lines 473 B
import type { Codec, DecodeOptions } from 'protons-runtime'; import type { Uint8ArrayList } from 'uint8arraylist'; export interface Record { key: Uint8Array; value: Uint8Array; timeReceived: string; } export declare namespace Record { const codec: () => Codec<Record>; const encode: (obj: Partial<Record>) => Uint8Array; const decode: (buf: Uint8Array | Uint8ArrayList, opts?: DecodeOptions<Record>) => Record; } //# sourceMappingURL=record.d.ts.map