export declare function wrapPromise(condition: boolean | Promise): Promise;