export declare function waitTillAvailable(func: Function): Promise;