/** * @param {(() => boolean) | (() => Promise)} conditionFn * @param {string | (() => string)} rejectMessage * @param {number} timeout * @param {number} [checkEvery] */ export function waitFor(conditionFn: (() => boolean) | (() => Promise), rejectMessage: string | (() => string), timeout: number, checkEvery?: number | undefined): Promise;