1export = asPromise; 2 3type asPromiseCallback = (error: Error | null, ...params: any[]) => {}; 4 5/** 6 * Returns a promise from a node-style callback function. 7 * @memberof util 8 * @param {asPromiseCallback} fn Function to call 9 * @param {*} ctx Function context 10 * @param {...*} params Function arguments 11 * @returns {Promise<*>} Promisified function 12 */ 13declare function asPromise(fn: asPromiseCallback, ctx: any, ...params: any[]): Promise<any>; 14 15