import { Cursor } from '@hazae41/cursor'; import { RlpList, RlpList55, RlpListUint8, RlpListUint16, RlpListUint24, RlpListUint32 } from './types/list.js'; import { RlpString, RlpString1, RlpString55, RlpStringUint8, RlpStringUint16, RlpStringUint24, RlpStringUint32 } from './types/string.js'; type RlpType = RlpString | RlpList; type BytesOrBytesArray = Uint8Array | BytesOrBytesArray[]; declare function fromOrThrow(value: BytesOrBytesArray): RlpType; declare function readOrThrow(cursor: Cursor): RlpString1 | RlpString55 | RlpStringUint8 | RlpStringUint16 | RlpStringUint24 | RlpStringUint32 | RlpList55 | RlpListUint8 | RlpListUint16 | RlpListUint24 | RlpListUint32; export { fromOrThrow, readOrThrow }; export type { BytesOrBytesArray, RlpType };