export = asPromise; /** * Returns a promise from a node-style callback function. * @memberof util * @param {function(?Error, ...*)} fn Function to call * @param {*} ctx Function context * @param {...*} params Function arguments * @returns {Promise<*>} Promisified function */ declare function asPromise(fn: () => any, ctx: any, ...params: any[]): Promise;