import { type BaseErrorType } from '../errors/base.js'; import { type InvalidHexValueErrorType } from '../errors/data.js'; import type { ErrorType } from '../errors/utils.js'; import type { Bytes, Hex } from '../types/data.js'; import { type CreateCursorErrorType } from '../utils/cursor.js'; import { type HexToBytesErrorType } from './toBytes.js'; import { type BytesToHexErrorType } from './toHex.js'; import type { RecursiveArray } from './toRlp.js'; type To = 'hex' | 'bytes'; export type FromRlpReturnType = (to extends 'bytes' ? RecursiveArray : never) | (to extends 'hex' ? RecursiveArray : never); export type FromRlpErrorType = CreateCursorErrorType | FromRlpCursorErrorType | HexToBytesErrorType | InvalidHexValueErrorType | ErrorType; export declare function fromRlp(value: Bytes | Hex, to?: to | To | undefined): FromRlpReturnType; type FromRlpCursorErrorType = BytesToHexErrorType | ReadLengthErrorType | ReadListErrorType | ErrorType; type ReadLengthErrorType = BaseErrorType | ErrorType; type ReadListErrorType = ErrorType; export {}; //# sourceMappingURL=fromRlp.d.ts.map