export declare function chain(initialValue: T, catchCallback?: (e: Error) => void): { add(next: (prevVal: T) => Promise): Promise; };