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