/** * Minimal RLP encoder/decoder for transaction signing. Supports byte strings * and (nested) lists. No support for other types — we never need them. * * Ref: https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/ */ export type RlpInput = Buffer | Uint8Array | RlpInput[]; export declare function rlpEncode(input: RlpInput): Buffer; /** * Encode a non-negative integer as a minimal big-endian byte string, * dropping leading zeros. 0 encodes to empty buffer (RLP convention). */ export declare function encodeInt(n: number | bigint): Buffer; export type Decoded = Buffer | Decoded[]; export declare function rlpDecode(buf: Buffer): Decoded; //# sourceMappingURL=rlp.d.ts.map