import { Stream, Source, Sink, Disposable, Scheduler } from '@tempest/core'; export interface DebugSubscriber { next?: (x: T) => any; error?: (e: Error) => any; complete?: (x?: T) => any; dispose?: () => any; } export declare function debug(infoOrSpy: string | DebugSubscriber, stream: Stream): Stream; export declare class Debug implements Source { private infoOrSpy; private source; constructor(infoOrSpy: string | DebugSubscriber, source: Source); run(sink: Sink, scheduler: Scheduler): Disposable; }