I'm too old for this sh*t. Just take the damn code.

This commit is contained in:
2026-07-07 19:05:19 +02:00
parent dd9a92d34e
commit 0311f9097f
35720 changed files with 4141914 additions and 79 deletions
@@ -0,0 +1,18 @@
import { Reader } from '@jsonjoy.com/buffers/lib/Reader';
import type { BinaryJsonDecoder, PackValue } from '../types';
export declare class BencodeDecoder implements BinaryJsonDecoder {
reader: Reader;
read(uint8: Uint8Array): unknown;
decode(uint8: Uint8Array): unknown;
readAny(): unknown;
readNull(): null;
readUndef(): undefined;
readTrue(): true;
readFalse(): false;
readBool(): unknown;
readNum(): number;
readStr(): string;
readBin(): Uint8Array;
readArr(): unknown[];
readObj(): PackValue | Record<string, unknown> | unknown;
}