import type { Buff } from './class/buff.js'; import type { Stream } from './class/stream.js'; export type Buffable = Bytes | number | bigint; export type Bytes = string | Uint8Array | Buff | Stream; export type Endian = 'le' | 'be'; export type Replacer = (this: unknown, key: string, value: unknown) => unknown; export type Reviver = (this: unknown, key: string, value: unknown) => unknown;