import { Void1 } from '../typings/types'; interface TapPromise { (fn: Void1, x: T): Promise; (fn: Void1): (x: T) => Promise; } /** * Runs the given promise with the supplied argument. Returns the argument, when promise is resolved. * * @param {Function} fn The function to call with `x`. The return value of `fn` will be thrown away. * @param {*} x * @return {*} `x`. * @example * * var sayX = x => console.log('x is ' + x); * Promise.resolve(5).then(promiseTap(sayX)); * // logs 'x is 5' */ declare const _default: TapPromise; export default _default;