import BN = require('bn.js')

export type RLPInput = Buffer | string | number | Uint8Array | BN | RLPObject | RLPArray | null

export interface RLPArray extends Array<RLPInput> {}

export interface RLPObject {
  [x: string]: RLPInput
}

export interface RLPDecoded {
  data: Buffer | Buffer[]
  remainder: Buffer
}

import BN = require('bn.js')

export type RLPInput = Buffer | string | number | Uint8Array | BN | RLPObject | RLPArray | null

export interface RLPArray extends Array<RLPInput> {}
interface RLPObject {
  [x: string]: RLPInput
}

export interface RLPDecoded {
  data: Buffer | Buffer[]
  remainder: Buffer
}

--- 
+++ 
@@ -3,7 +3,8 @@
 export type RLPInput = Buffer | string | number | Uint8Array | BN | RLPObject | RLPArray | null
 
 export interface RLPArray extends Array<RLPInput> {}
-interface RLPObject {
+
+export interface RLPObject {
   [x: string]: RLPInput
 }
 
Add missing export of RLPObject
