export default function (promise: Promise, callback?: (err: any, data: any) => void): Promise;