export declare const toPromise: (func: any, obj?: any) => Promise<{}>;