/** * 等待条件判断 * 提供一个函数,会每隔一段时间执行它,当判断为真时,返回 * * @example * await when(()=>window.isOk == true) * * @param ms 毫秒,可接受时间文本 * @param timeout 超时时间,超时后会返回错误,0 为不限制 */ export declare function when(tryFunc: () => boolean, ms?: string | number, timeout?: string | number): Promise; export declare function whenAsync(tryFunc: () => Promise, ms?: string | number, timeout?: string | number): Promise; //# sourceMappingURL=when.d.ts.map