declare type resolver = (x?: any) => Thenable; interface Thenable { then(resolve: resolver, reject?: resolver): Thenable; catch(reject: resolver): Thenable; } export declare function toThenable(val: IterableIterator | Thenable | any): Thenable; export declare function toValue(val: IterableIterator | Thenable | any): any; export {};