export type WaitForResolveOptions = { /** * Interval between checks (ms) * @defaultValue `100` */ interval?: number; /** * Timeout after which checks are aborted (ms) * `0` — without limitation * @defaultValue `5000` */ timeout?: number; }; /** * Waits for the check function to return `true` * * The checking function is launched at a given interval and its value is checked. * If it returned `true`, then it succeeds, otherwise we wait further. * If there is a timeout or an error in the checking function, it fails. * * @param solver resolving function * @param options Options */ export declare function waitForResolve(solver: () => boolean | PromiseLike, { interval, timeout, }?: WaitForResolveOptions): Promise;