import { Source, Scheduler } from './interfaces'; export declare function withDefaultScheduler(f: (x: T) => any, source: Source): Promise; export declare function withScheduler(f: (x: T) => any, source: Source, scheduler: Scheduler): Promise; export declare function runSource(f: (x: T) => any, source: Source, scheduler: Scheduler, end: (x?: T) => any, error: (e: Error) => any): void;