import { type Value } from "https://deno.land/x/bencodex@0.2.2/src/types.ts";
Represents a value which can be encoded in Bencodex. Each data type in Bencodex has its corresponding type in JavaScript:
null
represents Bencodex's nullboolean
represents Bencodex's Booleanbigint
represents Bencodex's integerstring
represents Bencodex's textUint8Array
represents Bencodex's binaryValue[]
represents Bencodex's list- Dictionary represents Bencodex's dictionary (note that it is not a concrete type, but an interface)