/** * Returns a promise that waits for the given condition function to return true. * If the condition function returns false, it will continue to be called at a regular interval until * the condition function returns true. * @param condition A function that must return true in order for the promise to resolve. * @param timeout An optional timeout value. Must be greater than 0 to be used. If condition is not met before timeout (ms), then the promise is rejected. * @param tickRate A optional tick rate value. Must be greater than 0. How frequently the condition function should be called (in ms). */ export declare function waitForCondition(condition: () => boolean, timeout?: number, tickRate?: number): Promise; /** * Return a promise that waits the given number of seconds before resolving. * @param seconds Number of seconds to wait before resolving the promise. * @deprecated Use APEngine.time.waitForSeconds instead. This allows the promise to be responsive to pause/timescale. */ export declare function waitForSeconds(seconds: number): Promise;