///
import * as EventEmitter from 'events';
import { CognacSourceInterface } from './source';
import { CognacContext } from './context';
export declare class CognacPipeline extends EventEmitter {
source: CognacSourceInterface;
private middleware;
constructor(source: CognacSourceInterface);
private exec;
start(): Promise;
stop(): Promise;
add(fn: (context: CognacContext) => any): void;
sink(fn: (context: CognacContext) => any): void;
}