export default interface StreamHandlers { onBinary?: (chunk: Buffer) => any | Promise, onMessage?: (data: any) => any | Promise, onClose?: (code: number) => any | Promise }