import { Proxy } from './types'
import { ProxyStream } from './ProxyStream'
import { Stream } from '@motorcycle/types'
export function createProxy(): Proxy {
const stream = new ProxyStream()
const attach = (origin: Stream) => stream.attach(origin)
return { attach, stream }
}