import { Consumer } from './types'; export declare function subscribe(onData: (t: T) => void, onEnd?: (e?: any) => void, onDispose?: () => void): Consumer;